11-30-2011 04:02 AM
Hi,
I have extracted a single element/character from a string using "String Subset Function". I want to convert this to a number eg U8.
The output from "String Subset Function" produces a 1 character string. If I convert it to U8 it produces an array of U8 with one element.
How can I convert it to a non-array variable?
Many thanks
Andy
PS originally posted in wrong Forum. Apologies.
Solved! Go to Solution.
11-30-2011 04:11 AM
Hope this helps!
Christian
11-30-2011 04:13 AM - edited 11-30-2011 04:16 AM
Andy,
Post a snippet of your code if Christians answer is not what you are looking for.
11-30-2011 04:17 AM
If you want to interpret the text to a number you'll need to use the Decimal String to Number and similar from a sub-pallete in string-pallette.
/Y
11-30-2011 04:36 AM
Hi,
Christian's answer was perfect.
Many Thanks
Andy