string cleaning

Alex Rice alex at mindlube.com
Mon Nov 10 21:56:29 EST 2003


On Nov 10, 2003, at 5:35 PM, Rob Cozens wrote:
>
> Looks OK to me, Alex; but why not just use:
>
> function printableCharString pString
>  local tRes, c
>  repeat for each character c in pString
>    if c < space or c > "~" then next repeat
>    put c after tRes
>  end repeat
>  return tRes
> end printableCharString

Because I didn't know you could use < and > that way :-)
Thanks,


Alex Rice <alex at mindlube.com> | Mindlube Software | 
<http://mindlube.com>

what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco



More information about the use-livecode mailing list