Y
yayiye
Unregistered / Unconfirmed
GUEST, unregistred user!
delphi中怎样动态创建一个查找字段?
我是这样搞的:
var newfield :TstringField;
newfield:=TStringField.Create(Self);
With newfield do
begin
FieldKind:=fkLookUp;
FieldName :='aaa';
LookupDataSet:=tbgangwei;
KeyFields:='bbb';
LookupResultField :='ccc';
KeyFields :='ddd';
size:=40;
Lookup :=True;
end;
table1.fields.add(newfield);
运行时发生错误:
"lookup information for field 'aaa' is imcomplete"
好像意思是查询字段定义不完整。
清高手指点!
我是这样搞的:
var newfield :TstringField;
newfield:=TStringField.Create(Self);
With newfield do
begin
FieldKind:=fkLookUp;
FieldName :='aaa';
LookupDataSet:=tbgangwei;
KeyFields:='bbb';
LookupResultField :='ccc';
KeyFields :='ddd';
size:=40;
Lookup :=True;
end;
table1.fields.add(newfield);
运行时发生错误:
"lookup information for field 'aaa' is imcomplete"
好像意思是查询字段定义不完整。
清高手指点!