Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Split text and save variables
#1
Hello

I want to store the text of the variable S in the variables arr [i] and arr2 [i] separately.
But I don't know the command and how to do it.

Ask for help.



output
arr[i]=
221
51
11


arr2[i]=
41
122
10





Function Function1
Code:
Copy      Help
str s =
;221 41
;51 122
;11 10

ARRAY(str) arr arr2
int i nt
nt = tok(s arr 2 " " 4|8|16|0x2000 arr2)
for(i 0 nt) 
,;out arr[i]
,out arr2[i]


Messages In This Thread
Split text and save variables - by BK - 07-20-2018, 10:37 AM
RE: Split text and save variables - by Gintaras - 07-20-2018, 04:13 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)