I know I can open tables with an alias name and I know I can open a table using a varible name, i.e.
use table1 alias tablename
or
tablename = "table1"
use (table1)
Basically I've got two tables with similar information. Circumatances will determine which table I want to use. Say I open a table using a variable name:
tablename = "table1"
use (tablename)
How to I refer to the fields. Normally I would just say something like ddd = table.fieldname. As "tablename" is a variable holding the name of an open table this does not work, ddd = tablename.fieldname shows the following error:
tablename is not an object
How can I refer to a field in a table, using a variable name for that table??? Hope you understand the question.
use table1 alias tablename
or
tablename = "table1"
use (table1)
Basically I've got two tables with similar information. Circumatances will determine which table I want to use. Say I open a table using a variable name:
tablename = "table1"
use (tablename)
How to I refer to the fields. Normally I would just say something like ddd = table.fieldname. As "tablename" is a variable holding the name of an open table this does not work, ddd = tablename.fieldname shows the following error:
tablename is not an object
How can I refer to a field in a table, using a variable name for that table??? Hope you understand the question.