Syntax
Public Function ArraySort(ByRef ary As Variant) As Boolean
Description
This function sorts the given array in ascending order.
Parameters
Key | Description |
ary | Array to sort, value of type Variant. |
Return value
Returns true in successful, otherwise returns false.
Sample
Public Sub main () Dim Arr (5) Arr (1) = 1 Arr (2) = 2 Arr (3) = 4 Arr (4) = 6 Dim Result Result = ArraySort (Arr) AlertMessage (Result) End sub
See Also