Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macrosubstitution equivalent
Message
De
11/08/2004 09:20:22
 
 
À
11/08/2004 09:11:08
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00931956
Message ID:
00932309
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform