W
wooiguo
Unregistered / Unconfirmed
GUEST, unregistred user!
if ADOQuery1.FindField('ABC') <> nil then exit;
ADOQuery1.Close;
with TStringField.Create(ADOQuery1) do
begin
FieldName := ADOQuery1;
DisplayLabel := 'ABC';
FieldKind := fkData;
Name := ADOQuery1.Name + FieldName;
index := ADOQuery1.FieldCount;
DataSet := ADOQuery1;
end;
ADOQuery.open;
代码写在Buttonclick事件里.
提示找不到'ABC'字段.
ADOQuery1.Close;
with TStringField.Create(ADOQuery1) do
begin
FieldName := ADOQuery1;
DisplayLabel := 'ABC';
FieldKind := fkData;
Name := ADOQuery1.Name + FieldName;
index := ADOQuery1.FieldCount;
DataSet := ADOQuery1;
end;
ADOQuery.open;
代码写在Buttonclick事件里.
提示找不到'ABC'字段.