Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21190

Sorting arrays alphabetically

$
0
0
Hi guys!

This is a very diffifult task for me so if you have a suggestion, please try to give solution examples insted of explainations.
I need something very fantastic.

I have three arrays of String, Integer and Boolean. Let's say:

Array_V(0) = b Array_R(0) = 1 Array_C(0) = False
Array_V(1) = d Array_R(1) = 3 Array_C(1) = True
Array_V(2) = a Array_R(2) = 4 Array_C(2) = False
Array_V(3) = c Array_R(3) = 2 Array_C(3) = True

Now, I need to sort only Array_V alphabetically and the related integers of the other arrays will be sorted automatically with Array_V. Briefly, the result should look like:

Array_V(0) = a Array_R(0) = 4 Array_C(0) = False
Array_V(1) = b Array_R(1) = 1 Array_C(1) = False
Array_V(2) = c Array_R(2) = 2 Array_C(2) = True
Array_V(3) = d Array_R(3) = 3 Array_C(3) = True

by sorting only Array_V.

Thanks a lot!

Viewing all articles
Browse latest Browse all 21190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>