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:
00572615
Vues:
37
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform