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.
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 em
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: http://runrev.i
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
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 ridicu
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
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 yo
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.
Well,
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 t
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 in
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
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 considered
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,
On 2/4/09 8:41 AM, "Andre.Bisseret" 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 non-breaking space
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
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
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]).
Vikt
17 matches
Mail list logo