Help needed with string array
HIBITDAC
Posts: 40
How to I split up a string array,
x var byte(9)
serin 15,84,[noparse][[/noparse]str x\9]
when·I debug it I get 072,33
How do I get the 2 numbers in 2 different variables?
Any help is appreciated.
Sam
Post Edited (HIBITDAC) : 8/4/2007 6:56:46 PM GMT
x var byte(9)
serin 15,84,[noparse][[/noparse]str x\9]
when·I debug it I get 072,33
How do I get the 2 numbers in 2 different variables?
Any help is appreciated.
Sam
Post Edited (HIBITDAC) : 8/4/2007 6:56:46 PM GMT
Comments
Have a look at the section of the Stamp Basic manual on SERIN and at the appendix on the formatters.
x var byte(3)
y var byte(3)
serin 15,84,[noparse][[/noparse]str x\3]
serin 15,84,[noparse][[/noparse]str y\3]
and that didnt work as well.
It is always 3 digits seperated by a "," then the last 3 digits.
You can convert to decimal as follows: