10-28-2024, 06:46 PM
(10-28-2024, 06:38 PM)jrmrhrb00 Wrote: AB, L-S,
I went back to basically the same code.
JR
Is this code your last code?
Code:
'small basic array
For i = 1 To 10
name[i]=math.GetRandomNumber(10)
EndFor
'creates ldArray from indices
status=LDArray.CreateFromIndices(name)
TextWindow.WriteLine(status)
'loads ldarray with random numbers
For i = 1 To 10
status[i]=Math.GetRandomNumber(10)
EndFor
'why does the below fail
result=LDArray.Sort(status)
TextWindow.WriteLine(result)
'would give a listing of sorted numbers, but just shows them in their random order
For i = 1 To 10
TextWindow.WriteLine(status[i])
endfor