DexterJones
asked on
re-arrange array values -highest to lowest VB6
Hi,
Please kindly assist how can we re-arrange array values? highest to lowest using VB6
i.e.
Dim Arr_First5Highest(6) As Integer
Debug.Print Join(Arr_First5Highest(6), ",")
output:
5,4,2,3,1,12,100
how can we re-arrange to output as:
100,12,5,4,3,2,1
Thanks.
Please kindly assist how can we re-arrange array values? highest to lowest using VB6
i.e.
Dim Arr_First5Highest(6) As Integer
Debug.Print Join(Arr_First5Highest(6),
output:
5,4,2,3,1,12,100
how can we re-arrange to output as:
100,12,5,4,3,2,1
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is Arr_First5Highest() an array of Integers or Long?
If you are using:
Sub BubbleSort (List() As Long, ByVal min As Integer, _
ByVal max As Integer)
It expects an array of Long values
Leo
If you are using:
Sub BubbleSort (List() As Long, ByVal min As Integer, _
ByVal max As Integer)
It expects an array of Long values
Leo
BubbleSortNumbers(Arr_Firs
Thanks