If you use more than 9, then you can't write variable like this
sequence =0348
because it is now impossible to determine your squares IID
0348=
0-3-4-8
0-34-8
0-3-48
so,, you need to use separator between numbers..and if you use separator ,
you need to use tokenat
[quote:1qyrncz8]tokenat(src, index, separator)
Return the Nth token from src, splitting the string by separator. For example, tokenat("apples|oranges|bananas", 1, "|") returns oranges.
tokencount(src, separator)
Count how many tokens occur in src using separator. For example, tokencount("apples|oranges|bananas", "|") returns 3.
I think it is much better&easier to do with arrays..but for now..
sequence_tokenat.capx
Edit:
sequence_Arrays.capx