F
fuxin198311
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure Tinhouse.ComboBox1Change(Sender: TObject);
begin
with adoquery2 do
begin
close;
sql.Clear ;
//sql.Text:='select stff_id from staff where stff_name='''+combobox1.Text+''' ';
sql.Text:='select stff_id from staff ';
open;
end;
label26.Caption:=adoquery2.FieldByName('stff_id').AsString ;
end;
当我改变combobox值时 label26的值应要对应变化
这样不行
begin
with adoquery2 do
begin
close;
sql.Clear ;
//sql.Text:='select stff_id from staff where stff_name='''+combobox1.Text+''' ';
sql.Text:='select stff_id from staff ';
open;
end;
label26.Caption:=adoquery2.FieldByName('stff_id').AsString ;
end;
当我改变combobox值时 label26的值应要对应变化
这样不行