Sorry, my example was unclear.
I'd like to pass an array to the routine to be able to re-use it in the same application and also to be able to put it in a library.
So, perhaps I should have presented it like this:
I'd like to pass an array to the routine to be able to re-use it in the same application and also to be able to put it in a library.
So, perhaps I should have presented it like this:
Code:
dim MyArray(10) as string
SUB SelectionSort (SortArray)
{Code}
END sub
'************************ Main ****************************
Let MytArray(0) = "Line 00"
Let MytArray(1) = "Line 02"
Let MytArray(2) = "Line 08"
Let MytArray(3) = "Line 06"
Let MytArray(4) = "Line 01"
Let MytArray(5) = "Line 03"
Let MytArray(6) = "Line 07"
Let MytArray(7) = "Line 04"
Let MytArray(8) = "Line 05"
SelectionSort(MytArray)