Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a function that returns range of words?
Message
 
À
22/04/2004 14:48:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00897321
Message ID:
00897345
Vues:
17
>>Thanks Sergey for the Reply,
>>
>>Guess, I have to write one myself.
>>
>>Dawa
>
>at() can give you the position of the n'th separator. You can then use substr() to get the text in-between.
>
>A problem may arise with the definition of "word":
>
>
>Word1   Word2
>
>
>Is Word2, above, the second word? Counting the separators (the three spaces), it would be the fourth. Depending on how you want to handle this, you may need additional adjustments. Repeatedly replacing a double space with a single space will get rid of unwanted spaces. See strtran().

Thank you, Himar,

I will keep that in mind.

Dawa
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform