Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does GETWORDCOUNT/NUM work correctly?
Message
From
02/11/2007 09:16:26
 
 
To
01/11/2007 15:51:43
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01265866
Message ID:
01266036
Views:
8
>If I try the following expression in the debugger, I get a count of 2.
>
>GETWORDCOUNT(";wordone;wordtwo;", ";")
>
>I was hoping to get a count of 4 where the first and last words are empty strings.
>
>GETWORDNUM(";wordone;wordtwo;",1, ";") returns "wordone" and not "".
>
>Was I expecting too much from these functions?
>
>Mike

x="1;wordone;wordtwo;"
?STREXTRACT(x,"",";",1,3)
prints 1
what you want

Peter
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform