How to test if a field does not contain anything else than returns or tab ?

DunbarX at DunbarX at
Tue Feb 3 13:03:32 EST 2009

This was a big thread on the HC list a few years back. Spaces are odd, in 
that they are not word delimiters. Although they are. One space between two word 
is two words, as is ten spaces between them. In HC:

get the number of words of "a   b   c" --two spaces between the chars, 
returns 3

And this....

set the itemDelimiter to space

get the number of items of "a   b   c" --returns 1

Space is just a special kind of character, and it is hard to get the white, 
er, space.

Does Rev have more powerful tools?

Craig Newman

Great Deals on Dell Laptops. Starting at $499. 

More information about the Use-livecode mailing list