Let's say I have 50 different SQL SELECT statements which each one returns one integer value...
e.g. SQL 1 = select count(row) from table where condition = 'a'
SQL 2 = select count(row) from table where condition = 'b'
..... so on .....
SQL 50 = select count(row) from table where condition = 'zzz'
If I have 50 labels (server control) and want to put each SELECT result to corresponding labels by using a FOR LOOP.
for (int i=0; i<49; i++)
// connect to the database and run each SELECT statement
// store each result to corresponding label. (Result 1 -> Label 1, Result 2 -> Label 2, .........., Result 50 -> Label 50)
I have all 50 SQL SELECT statements to run in a loop and each one has the result that I want.
I need to display all 50 results in 50 different labels (one-to-one) and just don't know how I need to name each label, so that I can use them like a array.
In VB6 (back in th
View Complete Post