you cannot access variables in this way!
what youre saying is, you have 4 variables, like these strings:
Dim s1, s2, s3, s4 As String
and then you want to make a loop and somehow access their in-code names via the loop:
For i as Integer = 1 to 4
s[B][i][/B] = "hello"
Next
Can i just make one thing clear:
Ignoring reflection, no precompiled programming language has ever, nor will ever offer this functionality. You cannot use one variable value to reference the name of another variable in your code!!
Those variable names are lost when the code is compiled so they arent even called s1, s2, s3 any more..
in java its like
lbl+i = ...
in java, it's not like... sorry but it cannot be done.
What I suggest you do is use an array. in your case, an array of labels:
Dim myLabels(0 to 3) as Label
myLabels(0) = lbl1
myLabels(1) = lbl2
myLabels(2) = lbl3
myLabels(2) is the array(with index)
lbl3 is the name of the label in normal code..
both are pointers to an object in memory that is a label on screen. They point to the same place. Once can be accessed with a numeric indexer. One cannot.