Subject | Searching under program control |
---|---|
Author | Chris Wallis |
Post date | 2003-02-12T16:37:12Z |
I need to perform a search under program control using a TIB_Query object.
The SQL in the query is just:
SELECT * FROM ATABLE
This is the genaral approach I tried that is not working:
ATable.ClearSearch;
ATable.Search;
Atable.FieldByName('AField').AsString := Edit1.Text; {* Search Value *}
Atable.Post;
Can I use a general purpose query as described above to search a table
programmatically? If yes, where can I find an example?
The SQL in the query is just:
SELECT * FROM ATABLE
This is the genaral approach I tried that is not working:
ATable.ClearSearch;
ATable.Search;
Atable.FieldByName('AField').AsString := Edit1.Text; {* Search Value *}
Atable.Post;
Can I use a general purpose query as described above to search a table
programmatically? If yes, where can I find an example?