Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macrosubstitution equivalent
Message
From
11/08/2004 09:20:22
 
 
To
11/08/2004 09:11:08
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00931956
Message ID:
00932309
Views:
19
Sorry for jumping in, I agree with Steve, you may want to give something like a collection, arraylist,etc. a thought. There are some instances when developers look for the equivalent of EVALUATE(), and the answer might be something simpler.

To Grigore, yes, the table is an object, but I believe if you're table names and column names are following a specific convention, you can programmatically refer to that table object by name as well as order number, for example
string cWhichTable = "1";

DataRow DrNew = MyDataSet.Tables["Table" + cWhichTable].NewRow();
And you can essentially refer to columns the same way...
string cMyCol = "5";
string cMyColString = MyDataSet.Tables["Table" + cWhichTable].Rows[nRow][cMyCol].ToString();
I don't know if that will help for your situation, but figured I'd mention it. If you need an array of tables, you could add and refer to them using the code sample above as well.

Does that help at all?

Kevin
Previous
Reply
Map
View

Click here to load this message in the networking platform