convert to lower ascii 128?

Devin Asay devin_asay at
Wed Feb 4 18:29:31 EST 2009

Chipp Walters wrote:
> Anyone know of a quick way to convert a string to only lower ascii  
> 128?
> (Deletes anything above).
> I'm hoping for something other than a repeat for each char loop.

Why don't you take the opposite approach--loop through 128 to 255?  
That way you have a reasonably short loop:

repeat with tCode = 128 to 255
   replace numToChar(tCode) with "" in myText
end repeat


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

More information about the Use-livecode mailing list