Subject How do search at runtime?
Author Marco Menardi
Hi, with IB_Query in search state, I want to fill the fields with
values and then perform the search programmatially (runtime).
I've found that WriteSearch() and ReadSearch() are useless, since they
refer to Controls (like CTL.frmContact.EditLASTNAME=Shmit), not
FieldName=FieldValue (as should be CUSTOMER.LASTNAME='Shmit').
Assigning with FieldByName('LASTNAME') does not work too, since when
the IB_Query is in search state, the normal field buffer is not used.
How can I do?
I want something like
With qryCustomer do
Begin
Search;
FieldByName('NAME').AsString := 'Marco';
First;
End;
Or something like with stringlist syntax...
Regards
Marco Menardi