> Wouldn't something like this work?
> 
> repeat while offset(stringToCheck,charToFind)
> 
>   -- get the found character's position in the string
>   tCharNum = offset(stringToCheck,charToFind)
> 
>   -- put in the replacement character
>   put replacementChar after stringToCheck.char[tCharNum]
> 
>   -- remove the original character
>   delete stringToCheck.char[tCharNum]
> 
> end repeat
> 
Actually, that's very similar to what I ended up doing--I'm looping
through the characters in the string looking for charToNum > 127, then
doing a substitution. 

I was looking for a faster way--one Lingo command, hopefully, sort of
like Pascal's "in" function. I don't mind doing the coding--I'm just
looking for faster execution.

Maybe I'll just post the code and see what improvements people suggest.

Cordially,

Kerry Thompson
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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