PDA

View Full Version : SERIN2 ending in linefeed



oldcarguy85
- 19th November 2007, 06:37
Hi,
I know there is probably a really simple answer to this. I want to use SERIN2 to recieve a string of an unknown length, ending in a carriage return followed by line feed. What is the easiest way to do this? Conceptually i assume it would be:

SERIN2 x,x,x,x,[STR myvar\"LF"] - problem is i am not sure how to represent a line feed here (obviously "LF" is not right lol).

thanks for any help,
Jordan

mackrackit
- 19th November 2007, 07:19
In the back of the PBP manual, appendix D is the ASCll table.

10 = Line Feed
13 = Carriage Return


SERIN2 x,x,x,x,[STR myvar,10]