Kelvin Stott
Active Member
- Joined
- Oct 26, 2010
- Messages
- 338
I am reading through the elements of an array with a For Each each loop, but how do I read the coordinates of each element in turn as called, for example:
For Each Element in MyArray
x = (first coordinate/index number of Element)
y = (second coordinate/index number of Element)
Next Element
I know that you can do this the other way round and call each element in turn by looping through the indices directly, but is there some function or property to read the "coordinates" or index numbers of each element in an array as called with a For Each loop?
For Each Element in MyArray
x = (first coordinate/index number of Element)
y = (second coordinate/index number of Element)
Next Element
I know that you can do this the other way round and call each element in turn by looping through the indices directly, but is there some function or property to read the "coordinates" or index numbers of each element in an array as called with a For Each loop?
Last edited: