Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function opposite of STREXTRACT()
Message
De
15/05/2013 16:40:19
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01573956
Message ID:
01573989
Vues:
57
>Is there a function in VFP that will work to replace a string between two delimits?
>Just as STREXTRACT() allows to extract between two delimits, to write the changed
>string back.


You can iterate so long as there are paired AT() finds, and then use STUFF() to remove that portion and stick the new portion in there.

If you are replacing with similar strings as your delimiters, you'll need to use a placeholder string without delimiters, and then do the STRTRAN() at the end to replace the placeholder with the desired string.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform