Char position of token...

Gilberto Cuba gilbert at isphlg.rimed.cu
Tue Nov 22 16:23:07 EST 2005


Hi,

How I can know the position of char of the determined token of the string?

Example:

put "a*sin(x+b)" into temp
put token 5 of temp   -- that return "x"
put char 7 of temp  -- that return "x"
...
now, well
...
put token 3 of temp  -- that return "sin"
put char 3 to 5 of temp  -- that return "sin"

then, i need any function that return the follow values:

token 5 of temp --->  char 7 of temp 
token 3 of temp --->  char 3 to 5 of temp

Best regards,

Gilberto Cuba


More information about the use-livecode mailing list