Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get GETWORDNUM results starting/ending position
Message
De
24/10/2001 10:44:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00572607
Message ID:
00572616
Vues:
36
>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

Yes, there is a function in FoxTools. However, it has the problem of ignoring consecutive delimiters, that is, blank parameters.

A string like: Par1;;Par3, where the second parameter is omitted, would give you "Par3" for the second "word". The reason is that when you count real words, consecutive spaces should be ignored.

I recommend copying your string to an array with alines(). Then, loop through the array.

Saludos, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform