Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get GETWORDNUM results starting/ending position
Message
 
 
To
24/10/2001 10:33:14
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00572607
Message ID:
00572615
Views:
38
>I´ve need a function that makes somethin like this:
>
>Knowing the word number (for a specific delimiter),
>Get this words starting/ending position.
>
>Does this exist?
>If not, how can I get it?
>
>Thanks,
>Ibai

You can use the AT() and LEN() functions to get this along with GetWordNum():
StartPos= at(getwordnum(lcvar,3)+< delimiter >,lcvar)
EndPos = at(getwordnum(lcvar,3)+< delimiter >,lcvar)+len(getwordnum(lcvar,3))-1
To make it easier to read, you could assign the return value of GetWordNum to a variable and use it.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform