Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get GETWORDNUM results starting/ending position
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00572607
Message ID:
00572622
Views:
50
>Not always,
>I know words are unique but... can hapen that one word is part of another.
>Look at this case:
>
>"I allways go that way"
>
>if you try to look for way with at() you will get 6th position, but it isn´t the position of the word "way"
>
>Exactly, I have this:
>lcStr="word1-word/word3-word2/wor"
>
>and the function GETWORDPOSITION (lcStr,5) must return 24.
>Does this function exist, or how can I get it?
>
>Thanks again,
Ibai,

No the function doesn't exist. However, since you know the word delimeters, you can simply add them to the call to the AT() function. You may, however, have to do this for each possible delimeter, checking to see if 0 is returned or not.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform