While Bob Sneidar's function should do the job of scrubbing weird characters from text, am unsure why he felt the need to construct that massive pCustomList variable. Seems to me that it would be simpler, and perhaps quicker, to do this instead: function cleanASCII2 DerASCII put "" into DerRezult repeat for each char CC in DerASCII put charToNum (CC) into Fred if Fred > 31 and Fred < 127 then put CC after DerRezult -- the full range of ASCII values for printable characters end repeat return DerRezultend cleanASCII2 The above code is not tested in any way. It's clearly not to be trusted with Unicode text, so which might be why Sheidar felt the need to go thru a somewhat more complicated procedure… _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Changing text properties in a field via the IDE
Quentin Long via use-livecode Tue, 19 May 2020 15:58:28 -0700
- Re: Changing text properties in a field vi... Richard Gaskin via use-livecode
- RE: Changing text properties in a field vi... Ralph DiMola via use-livecode
- Re: Changing text properties in a fie... Graham Samuel via use-livecode
- Re: Changing text properties in a... Tore Nilsen via use-livecode
- Re: Changing text properties ... Graham Samuel via use-livecode
- Re: Changing text propert... Richard Gaskin via use-livecode
- Re: Changing text pr... Tore Nilsen via use-livecode
- Re: Changing text pr... Graham Samuel via use-livecode
- Re: Changing tex... Devin Asay via use-livecode
- Re: Changing text properties in a... Bob Sneidar via use-livecode
- Re: Changing text properties in a field vi... Quentin Long via use-livecode
- Re: Changing text properties in a field vi... Quentin Long via use-livecode