PDA

View Full Version : Parsing serial data



Heckler
- 4th March 2010, 04:43
In the PBP 2.60 upgrade manual(pg.150, center paragraph, last two sentenses read...

"All non-digits received prior to the first digit of the decimal value are ignored and discarded. The non-digit character which terminates the value is also discarded."

therefore...

if the string "abcde@#.,&fg66.77aldkfj88.99" is recieved
and my parsing statement is "dec W,dec X,dec Y,dec Z" WITHOUT any "wait" modifiers

will the result be W=66, X=77, Y=88, Z=99 ??

and all "non-digits" discarded and ignored?

Is a period (".") a non-digit?


Thanks for any help
Dwight

mackrackit
- 4th March 2010, 14:25
will the result be W=66, X=77, Y=88, Z=99 ??
Yes


and all "non-digits" discarded and ignored?
Yes


Is a period (".") a non-digit?
0-9 are digits