In this category you can exchange your programming questions and solutions.
-
maurizio
- Posts: 6
- Joined: Fri Oct 21, 2011 1:14 pm
Post: # 767Post
maurizio
Wed Nov 09, 2011 3:36 pm
Hi, i dont understand how is use the `SORT$ function`, for slide the array in alphabetical order i must use with the FOR loop or only the SORT$ work the same?
thank.
-
maurizio
- Posts: 6
- Joined: Fri Oct 21, 2011 1:14 pm
Post: # 768Post
maurizio
Fri Nov 11, 2011 5:32 pm
I resolved.
Dim x(2) as string
x(0)="C"
x(1)="B"
x(2)="A"
sort$ x(0 to 2),ststring
dim i as integer
for i=0 to 2
print x(i)
next i
sleep 3000
-
Marco
- Site Admin
- Posts: 246
- Joined: Sat Sep 15, 2018 8:41 pm
Post: # 769Post
Marco
Fri Nov 11, 2011 9:10 pm
just wanted to give an answer but you find it out already.
sort$ is a binary sort method. It works only on single arrays.
best regards marco
-
Marco
- Site Admin
- Posts: 246
- Joined: Sat Sep 15, 2018 8:41 pm
Post: # 770Post
Marco
Fri Nov 11, 2011 9:38 pm
sort$ seems to be buggy, i will investigate it.
regards marco