Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get GETWORDNUM results starting/ending position
Message
De
24/10/2001 11:18:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00572607
Message ID:
00572634
Vues:
54
>Hi Hilmar,
>
>I cant change the delimiter, becouse I must keep it.

I meant that you specify a delimiter other than new-line.

>The whole problem is this.
>Having a string like
>lcStr="word1-word/word3-word2/wor"
>(- and / are delimiters), and having an integer
>lnNum=2
>return the string with second word deleted
>return ("word1-word3-word2/wor")

Since you use two different delimiters ("-" and "/"), it seems to me that you better use the AT() function, as recommended in the other replies you got.
delete_from = at(...)
delete_to = at(...)
new_word = left(oldword,...) + substr(oldword,...)
I leave the dirty work, of filling in the exact parameters, to you.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform