|
-
Nov 30th, 2005, 04:26 PM
#19
Re: sorting arrays
 Originally Posted by ajames
I would like the code to sort it so it goes from iarray(4) to iarray(0),and then put the indexes (EDIT: indicies) into a new array called order()
I don't know... I re-read it and re-read it... and I still get to the same conclusion...
He wants to sort the array, and put a indexes in a new array.
If it's the way you did it, then It does not make sence to put the index in a new array, why can't you just read the array in reverse order like this:
VB Code:
For I = UBound(iarray) to LBound(iarray) Step -1
Debug.Print iarray(I)
Next I
I'll wait for ajames respose to have a more clear explanation (hopefully)
Edit
I just realized that I did not make my code sort in reverse order, but that can be easily fixed if you just read the sorted array in reverse order like in the code above.
Last edited by CVMichael; Nov 30th, 2005 at 04:30 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|