Invisible character treated as word?
JB
sundown at pacifier.com
Tue Jan 27 22:28:57 EST 2015
On Jan 27, 2015, at 6:46 PM, Kay C Lan <lan.kc.macmail at gmail.com> wrote:
>
> My suggested solution is where ever the data originally came from, prior to
> inputting into your fields, variables or custom properties, it should be
> tested to confirm that the data only contains ASCII chars 48 to 57 (unless
> you include thousand separators and or decimal points, in which case you'd
> have to include their ASCII equivalents as well).
>
> HTH
How about something like this?
put “0123456789.,” into tList
—put the text you want to check in pText
repeat with x = 1 to number of chars in pText
if char x of pText is in tList then put char x of pText in tCleanText
end repeat
put tCleanText
John Balgenorth
More information about the use-livecode
mailing list