Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strip carriage returns

Status
Not open for further replies.

flea333

Technical User
Sep 4, 2003
47
0
0
US
I added set aspect rgetchar 13 STRIP and it strips the carriage return following the returned string. But I still have a carriage return before the string. How can I eliminate this?
 
Actually I figured out that the carriage return before each rget is the return sent from the previous command. So to fix it, even thought its a pain, I can put the rxflush command in before each rget.
 
Does anybody know of another way to fix this?
 
You can use the strreplace command to get rid of the carriage return by replacing it with nothing. Here is how the command should look:

strreplace szText "`n" ""

aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top