Say I have a list of variables like so, ranging from x0 to x1:
x0 = 0.0
x1 = 1.0
x2 = 3
x3 = 9
x4 = 18
x5 = 20
x6 = 30
There is a function within a software package I'm writing the code for which selects a point on a given co-ordinate (the actual function doesnt really matter).
call view.selectCircle(x, y, z, "Set", "Point")
What I want to do is write a loop function which runs this function for all my values of x0-x1. I've tried this but have failed to get it to work...
For i = 1 To 6
call view.selectCircle("x" & i, 0.0, 0.5, "Set", "Point")
Next
Sorry if this is an extremely basic question as I'm pretty new to programming!
Thanks for any help.
VBAbutVB.NET. If so, remove the tagVBAand add tagVB.NETso you can get more relevant answers.