is there a way i can do like this in vb.net
dim idx = -1
dim a = array(idx = idx + 1)
dim b = array(idx = idx + 1)
dim c = array(idx = idx + 1)
dim d = array(idx = idx + 1)
what i want is that idx keeps incrementing after each line, without incrementing it on a seperate line.
Thank you
I don’t think VB.Net has anything like that, but you can make an extension to get close to it:
Note the use of
ByRefin the arguments.Then your call would look like this: