Invisible character treated as word?

JB sundown at pacifier.com
Tue Jan 27 22:34:36 EST 2015


That should have been put after tCleanText

> 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


On Jan 27, 2015, at 7:28 PM, JB <sundown at pacifier.com> wrote:

> 
> 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
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 





More information about the use-livecode mailing list