FreddieBlassie
Programmer
I have a list variable, RSTPattern, with value:
{00 27 42 42 03 00 00 02 02 0C 00 00 00 22 22 22 22 22 01000000 00 00 22 22 22 22 22 23 00 01 00 00 00 00 0A 00 00 00 }
I'd like to know how I can add spaces between the values that currently do not have spaces, as this is required. I am trying to find a way to do it using linsert, but am having no luck. The first space should be set in the 18th index of the list. Something like: set RSTPattern $[linsert $RSTPattern 18 " "]
Of course that doesn't work, but am I on the right track? Not sure my syntax is correct there. If something like this won't work to accomplish it, what will?
{00 27 42 42 03 00 00 02 02 0C 00 00 00 22 22 22 22 22 01000000 00 00 22 22 22 22 22 23 00 01 00 00 00 00 0A 00 00 00 }
I'd like to know how I can add spaces between the values that currently do not have spaces, as this is required. I am trying to find a way to do it using linsert, but am having no luck. The first space should be set in the 18th index of the list. Something like: set RSTPattern $[linsert $RSTPattern 18 " "]
Of course that doesn't work, but am I on the right track? Not sure my syntax is correct there. If something like this won't work to accomplish it, what will?