Approach a TTable by its name as a String
Posted on 2001-06-14
I have a set of strings that have the names to different TTables. ('tblCars' or 'tblCycles' as strings).
What i want to do in a simple way, is to approach a table as <name of the table>.FieldByName('Brand').AsString;
Which table is to be used is returned by another query (I pass the table name thrue as a string).
How can you get the correct table if you only have its name as a string?