geneo300zx
Programmer
I need to loop through an array 7 times and place the last value in the array in the first position and move up all the other values. Any help with this would be greatly appreciated. For example:
myArray(0) = "test 0"
myArray(1) = "test 1"
myArray(2) = "test 2"
myArray(3) = "test 3"
first time through the loop
display test 0
display test 1
display test 2
display test 3
second time through the loop
display test 3
display test 0
display test 1
display test 2
third time through the loop
display test 2
display test 3
display test 0
display test 1
Fourth time through the loop
display test 1
display test 2
display test 3
display test 0
and so on.
myArray(0) = "test 0"
myArray(1) = "test 1"
myArray(2) = "test 2"
myArray(3) = "test 3"
first time through the loop
display test 0
display test 1
display test 2
display test 3
second time through the loop
display test 3
display test 0
display test 1
display test 2
third time through the loop
display test 2
display test 3
display test 0
display test 1
Fourth time through the loop
display test 1
display test 2
display test 3
display test 0
and so on.