Hello,
Did you plan to do a function for reverse sample ?
Reverse sample
- airsoftsoftwair
- Posts: 5433
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Reverse sample
Wouldn't be very difficult to do but I doubt that many people need such a feature. You can do this on your own: Get the sample data using GetSampleData(), reverse the data in the table, and then convert it back into a sample using CreateSample(). Voila. It's just a few lines of code.
Re: Reverse sample
I use :
SORT(Table,Function(a,b) Return(a>b) EndFunction)
for reverse order => The values of the items no longer appear the same
SORT(Table,Function(a,b) Return(a>b) EndFunction)
for reverse order => The values of the items no longer appear the same
Re: Reverse sample
Ok i solved:
Code: Select all
Function ReverseItems(T)
local i, j = 0, ListItems(T)-1
While i < j
T[i], T[j] = T[j], T[i]
i = i + 1
j = j - 1
Wend
EndFunction