Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sort mulit-dimensional array
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00788418
Message ID:
00788845
Views:
13
This message has been marked as the solution to the initial question of the thread.
This might be what you're looking for:

http://www.freevbcode.com/ShowCode.Asp?ID=2530

>Hi,
>
>I'm looking for a procedure that can sort a multi-dimensional array. For example I have an array that looks like the following
>
>
dim aFoo(0 to 1, 0 to 2)
>
>aFoo(0, 0) = "A"
>aFoo(1, 0) = True
>aFoo(0, 1) = "C"
>aFoo(1, 1) = False
>aFoo(0, 2) = "B"
>aFoo(1, 2) = True
>
>I would like to sort on all values in aFoo(0). After sorting the array would look like
>
>
aFoo(0, 0) = "A"
>aFoo(1, 0) = True
>aFoo(0, 1) = "B"
>aFoo(1, 1) = True
>aFoo(0, 2) = "C"
>aFoo(1, 2) = False
>
>Does anyone know where I could find such a beast?
>
>Thanks.
Al Williams

Anola MB, CANADA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform