----- Original Message ----- 
From: Mark Bishop <[EMAIL PROTECTED]>
Subject: <lingo-l> removing spaces from a string


> Is there a Lingo routine that will allow me to remove all of the spaces from
> a string?

You should look into the "offset" and the "delete" commands.
"offset(stringToLookFor, stringToLookIn)"
"delete stringToDeleteFrom.char[charnumToBeDeleted]"
continue using these lines until the offset command returns 0.

It's also very useful if you wish to remove 9's or D's. If you only wish to delete 
either upper- or lowercase letters you should combine it with numtochar() and 
chartonum().

Happy coding.

/jonas




[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to