General information
Category:
Coding, syntax & commands
I ended up going with switching the numbers instead of reordering, but I'll save this in case I ever do need to reorder.
Thanks,
Michelle
>Hi!
>
>See following code, maybe you'll like it ;)
>
>Instead of
>
>laOrder[3] = 2
>
>do following:
>
>lnLen = alen(MyArray)
>lnIndexchange = 3
>lnValueChange = 2
>lnStartingValueM1 = (lnLen - lnIndexchange + lnValueChange)
>for i = 1 to lnLen
> MyArray[i] = (lnLen + i - 1 + lnStartingValueM1 ) % lnLen + 1
>endfor
>
>HTH.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only