I guess this is error
Code :
I just don't run the code got it from mobile.
What results this show:
And litdev extension api show for method:The input array is replaced by the sorted array
So after AB fix you have to make the last loop like this:
Code :
PHP 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
What results this show:
PHP Code:
result=LDArray.Sort(status)
TextWindow.WriteLine(result)
So after AB fix you have to make the last loop like this:
PHP Code:
For i = 1 To 10
TextWindow.WriteLine(LDArray.GetValue(status,i))
endfor
ZS