I need to know something about code syntax in VBScript.....
If you have something like this:
dim LED(15)
LED(0) = Array(Light7,Light6,Light5,Light4,Light3,Light2,Li
ght1)
LED(1) = Array(Light14,Light13,Light12,Light11,Light10,Ligh
t9,Light8)
...etc...
and you want to call specifically say light5 there from the nested array, how would you do it? You might think this would work:
Led(0,2).state = 1
but it will give a subscript out of range error. Apparently, an array nested within an array is not accessed the same way as a multi-dimensional array. I've tried without success to find a reference to something similar online.
Led[0,2] doesn't work
Led[0][2] doesn't work
Led(0)(2) doesn't work
...etc.
Destruk's code in High Roller Casino did a collection type thing:
for each obj in LED(num)
obj.state = 1
next
That works, but I need to access two sets of separate arrays at the same time (so I can have a separate off color that is gray instead of dark orange to match the photos of the game) and the way VP stacks lights, you have to change them in reverse order at the same time so I can't use a for each type loop. I need to put manual variables in there with a nested loop and then extract both sets at the same time to make it work. But I have no idea how you directly pick out a value within that led array that's an array nested within it in VBScript. Maybe someone here knows....