Changing text properties in a field via the IDE

Quentin Long cubist at
Tue May 19 19:09:38 EDT 2020

Just saw an improvement in my code that *should* make it happy to work with Unicode characters…

local OkayChars = ""
function CleanASCII3 DerText  if OkayChars = "" then -- construct OkayChars string as needed    repeat with K1 = 32 to 126      put numToChar (K1) after OkayChars    end repeat  end if
  put "" into DerRezult  repeat for each char CC in DerText    if CC is in OkayChars then put CC after DerRezult  end repeat  return DerRezultend CleanASCII3
Again, this code has not been tested, so use with caution.

More information about the use-livecode mailing list