boc7900
asked on
TClientDataSet.Lookup
What I'm doing wrong?
It doesn't work:
ACE := DBLookupComboBox1.Field.Te xt;//.Valu e;
co := ClientDataSet1.Lookup('COD I', ACE,'NOM');
And it works fine:
ACE := 'AAA';
co := ClientDataSet1.Lookup('COD I', ACE,'NOM');
The DBLookupComboBox1.Field.Te xt;//.Valu e contens AAA.
How can I pass the DBLookupComboBox1.Field.Va lue to the
ClientDataSet1.Lookup?
Thanks
It doesn't work:
ACE := DBLookupComboBox1.Field.Te
co := ClientDataSet1.Lookup('COD
And it works fine:
ACE := 'AAA';
co := ClientDataSet1.Lookup('COD
The DBLookupComboBox1.Field.Te
How can I pass the DBLookupComboBox1.Field.Va
ClientDataSet1.Lookup?
Thanks
change DBLookupComboBox1.Field.Te xt to DBLookupComboBox1.Text
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It works fine.
Thanks
Thanks
just for interest...
if it works fine, why grade B? ;)
mo. :)
if it works fine, why grade B? ;)
mo. :)
ASKER
Sorry. I don't know the importance of grades. I qualified as good, because I thought excelent is an exceptional thing.
Next answer will be graded A if work.
Next answer will be graded A if work.
co := ClientDataSet1.Lookup('COD
mo.