Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arrays reverse order, splitting one line of strings
#3
@Gintaras 
Thanks for your help

I have trouble understanding the code below,    use  a.sort  be implemented using parameters?

;reverse
for(int'i 0 a.len/2) a.swap(a[a.len-i-1])
-------------------------------------------------------------------------------------------------

I found a function that splits the Line string, but didn't keep #

Macro Macro9
Code:
Copy      Help
_s = "I'm in the third line #foo #ball"
ARRAY(str) a
int i=tok(_s a 2 "?=#" 2)
out i
_s=a
out _s


Messages In This Thread
RE: Arrays reverse order, splitting one line of strings - by Davider - 07-21-2022, 02:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)