Try using Alias variables e.g.
Dim X, Y as Alias
X="Table_Name.RowID"
Y="Table_Name.obj"
row_number = X
table_object = Y
> --
> From: Stephen R. Riese[SMTP:[EMAIL PROTECTED]]
> Sent: Monday, January 10, 2000 7:37 PM
> To: MapInfo
> Subject: MI Accessing Tables via Variable Names
>
> Greetings,
> Sorry, if this is trivial, but I can't find an answer anywhere (in the
> documentation, that is) . I'd like to run the same procedure on several
> tables, without having to hard code a separate subroutuine or function
> specific for each table. The procedure works fine for one table at a
> time,
> but I need it to work for several tables. The part that's giving me
> problems (right now anyway) are lines like these:
>
> row_number = Table_Name.RowID
> table_object = Table_Name.obj
>
> When Table_Name is the actual name of the table, things work fine. How
> can
> I replace Table_Name with a (string?) variable so that the same code can
> be
> run on multiple tables?
>
> Thanks,
> Steve Riese
>
> [EMAIL PROTECTED]
> --
> To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
>
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]