我是这样写的!
procedure Tpeiview.ComboBox3Change(Sender: TObject);
var
i:integer;
begin
panel5.Visible:=true;
if combobox3.ItemIndex=7 then
begin
combobox4.items.clear;
; for i := 0 to Table1.FieldCount - 1 do
; ; ;combobox4.items.add(Table1.Fields.FieldName);
;......这些是放在一个PANEL上的!