interesting problem I've come across.
Essentially I count the number of rows (n) in a dataset and need to dim a [v]*[/v] for each row (i) ...
for example:
Code
Dim tbrow
Dim myVariableInc As Integer = 1
For Each tbrow In ds.Tables(0).Rows
Dim logsiteId & myVariableInc
myVariableInc += 1
Next
'or different loop type
For myVariableInc = 1 To ds.Tables(0).Rows.Count + 1
Dim logsiteId & myVariableInc
Next
Display More
the question is how to dim and name the variable and join with the increment - Dim logsiteId & myVariableInc ... whose desired result would be logsiteId1, logsiteId2 and so on.
hopefully someone has an idea ... or knows ...
/Nick