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

2009-02-05 Thread Andre.Bisseret
Very helpful indeed ! Always learning :-) I did not know that a non-breaking space was considered as a word ! Like St Thomas, I tried it and … you are right (of course ;-)) Yes, as you say, it is unlikely (mainly due to the fact that one use two keys to type a non-breaking space) but sure

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

2009-02-05 Thread viktoras d.
there is: if matchText(fld fText, \S) is false then answer no text in field end if This one checks for any symbols that are not whitespace of any kind (\S is same as [ \t\f\r\n]). Viktoras Bob Sneidar wrote: I wonder, isn't there a way to use regular expressions to check for white

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

2009-02-05 Thread viktoras d.
small correction: \s is same as [ \t\f\r\n], and \S is opposite to \s. viktoras d. wrote: there is: if matchText(fld fText, \S) is false then answer no text in field end if This one checks for any symbols that are not whitespace of any kind (\S is same as [ \t\f\r\n]). Viktoras

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

2009-02-04 Thread Andre.Bisseret
Hello Thanks to all who paid attention to my question Quite a nice number of ways (mainly variations around counting the number of words) best regards from Grenoble André P.S. Once again I did not receive a couple of messages; those from Craig ; I saw they were sent thanks to the answers,

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

2009-02-04 Thread Ken Ray
On 2/4/09 8:41 AM, Andre.Bisseret andre.bisse...@inria.fr wrote: Hello Thanks to all who paid attention to my question Quite a nice number of ways (mainly variations around counting the number of words) BTW, just for 100% clairty, none of these word-based approaches work if there is a

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

2009-02-03 Thread Andre.Bisseret
Bonjour, I need to test if a given list field in a stack contains some values or if it is empty. Well, by empty I mean that the field contains not any word or number. But it happens that it may include carriage returns and/or tabs. In such cases : field thisField is empty return false. If

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

2009-02-03 Thread Klaus Major
Bonjour Andre, Bonjour, I need to test if a given list field in a stack contains some values or if it is empty. Well, by empty I mean that the field contains not any word or number. But it happens that it may include carriage returns and/or tabs. In such cases : field thisField is empty

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

2009-02-03 Thread Mark Schonewille
Hi André, if number of words of fld This Field is 0 and (fld This Field contains cr or fld This Field contains tab) then... -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz Dutch forum:

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

2009-02-03 Thread Andre.Bisseret
Le 3 févr. 09 à 15:22, Klaus Major a écrit : Bonjour Andre, Bonjour, I need to test if a given list field in a stack contains some values or if it is empty. Well, by empty I mean that the field contains not any word or number. But it happens that it may include carriage returns and/or

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

2009-02-03 Thread Andre.Bisseret
Le 3 févr. 09 à 15:24, Mark Schonewille a écrit : Hi André, if number of words of fld This Field is 0 and (fld This Field contains cr or fld This Field contains tab) then... -- Best regards, Mark Schonewille Bonjour Mark Excellent :-) Same answer as I made to Klaus : I feel ridiculous

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

2009-02-03 Thread Hugh Senior
This assumes what you need is whether text is in the field... function isEmpty pFld return (num of words of fld pFld = 0) end isEmpty HTH /H Bonjour, I need to test if a given list field in a stack contains some values or if it is empty. Well, by empty I mean that the field contains not

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

2009-02-03 Thread Mark Wieder
Andre.Bisseret- Yet another variation: if word 1 to -1 of field thisField is empty -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

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

2009-02-03 Thread Bob Sneidar
I wonder, isn't there a way to use regular expressions to check for white space? Bob Sneidar IT Manager Logos Management Calvary Chapel CM On Feb 3, 2009, at 6:18 AM, Andre.Bisseret wrote: Bonjour, I need to test if a given list field in a stack contains some values or if it is empty.

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

2009-02-03 Thread DunbarX
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

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

2009-02-03 Thread stephen barncard
I've found that using a non-breaking space instead of a space solves a lot of problems with parsing text. For instance links clicked in a field with two words connected with a NBS will act as one word-pair. This is perfect for headers. Perhaps filtering and searching with a NBS might work better

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

2009-02-03 Thread J. Landman Gay
dunb...@aol.com wrote: 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

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

2009-02-03 Thread DunbarX
Jacque: Score one for modernity. That spaces in Rev can be itemdelimiters is clean and logical, and obviates the whole issue. I have replaced spaces now and then in HC with both visible and invisible chars to emulate a space/word delimiter. I was among the camp in the HC thread that