Identifying empty lines of text

hh hh at hyperhh.de
Sat Jan 13 01:26:39 EST 2018


> hh wrote:
> You could try to use (respects UCI word boundaries):
>     if the num of trueWords in myString is 0
> Works here in LC 7 and later.

Sorry: ICU - International Components for Unicode (not UCI).

>> I use “the number of words in myString = 0” to test whether
>> a line of text appears empty, since I want a line with only
>> space characters to be understood as empty.
>> But a line of text I pasted from elsewhere contained an
>> invisible character whose charToNum value is 202, and this
>> was counted as a word by my script.
>> Is there a better way to test for a line of text that has no
>> visible characters?
>> Many thanks.
>> 
>> David Epstein





More information about the use-livecode mailing list