Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get GETWORDNUM results starting/ending position
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00572607
Message ID:
00572622
Vues:
49
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform