LiquidPenguin
09-05-2003, 10:29 PM
To boil it all down. Let's say I have an array that is filled with data. Let's just say for simplicity sake it's a byte array filled with an incrementing number.
A(0) = 0
A(1) = 1
A(2) = 2
.
.
.
Now let's say I want to reverse the data in this array and place it into a new array.
B(0) = 2
B(1) = 1
B(2) = 0
.
.
.
So other than doing this:
for i = lbound(a) to ubound(a) step 1
b(ubound(b) - i) = a(i)
next i
Is there a nice fast, one shot way... say an API call, that I can use to speed up this process?
A(0) = 0
A(1) = 1
A(2) = 2
.
.
.
Now let's say I want to reverse the data in this array and place it into a new array.
B(0) = 2
B(1) = 1
B(2) = 0
.
.
.
So other than doing this:
for i = lbound(a) to ubound(a) step 1
b(ubound(b) - i) = a(i)
next i
Is there a nice fast, one shot way... say an API call, that I can use to speed up this process?