01-09-2014 10:15 AM
may be in the same topic i can ask another question - how to assemble the resulting array 1 01 00 02 with dots - like 184.108.40.206 ?
SInce you also want to eliminate leading zeroes, you should convert to U8, then use "array to sreadsheet string" using a period as delimiter and a %d as format.
01-09-2014 10:39 AM - edited 01-09-2014 10:40 AM
Kinda trite topic, but...
I have a string say 1010002. I need to split it itno two digits groups - 1 01 00 02, if it's uneven - so MSB stands alone.
Thanks in advance. 🙂
Can we get clearer specification?
What is the maximum string lenght? what is the miminum string length? Are all characters decimal digits or can there be other characters?
Later you eliminated leading zeroes from each group. Is that what you really want?
For example if the string is always 7 or 8 decimal (or even hex) characters, the following would do.
01-12-2014 10:11 AM
i'm not sure but suppose the string has a fixed lenth. the last one real nice! Well done altenbach! 🙂
01-12-2014 11:26 AM
'I'd go into vi.lib under advanced string and use join strings with "." as the delimiter
07-06-2014 11:16 AM - edited 07-06-2014 11:18 AM
is there any example code for this ?
You are posting at the end of a long thread that discusses several things, and shows quite a bit of example code already.
So please explain what you mean by "this". Thanks.
(Since this thread is marked as solved, and you apparently want a different solution, you should maybe start a new thread instead).