Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tok and position in a string
#1
I wonder whether it is possible to tokenize a string starting from a certain position inside this string. Thanks in advance.
#2
I came up with the following work-around :

Function tempf11
Code:
Copy      Help
str s="abc defg hij klmn opqr"
str sl.get(s 6)
ARRAY(str) a
tok(sl a)
for int'i 0 a.len
,out a[i]

Any suggestion or advice is much appreciated.
#3
Macro Macro2771
Code:
Copy      Help
str s="abc defg hij klmn opqr"
ARRAY(str) a
tok(s+6 a)
for int'i 0 a.len
,out a[i]


Forum Jump:


Users browsing this thread: 1 Guest(s)