Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
StrExtract()
Message
De
05/06/2008 09:44:13
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
05/06/2008 08:28:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01321672
Message ID:
01321851
Vues:
22
>>I want to extract the string between the asterisks, or between an asterisk and the tilde if it's the last occurrence. If I use StrExtract() with occurrences from 1 to 4, I get "4" "3" "23" and "0" as results in the example below.
>>
>>
>>m.test = "HL*4*3*23*0~"
>>
>>
>>This evaluates to "" because there is no second asterisk for the fourth occurrence:
>>
>>m.String = STREXTRACT(m.test, "*", "*", 4)
>>
>
>Why don't you just use ALINES() with the parse character parameter to break the whole thing up at once?
>
>Tamar

Thanks, but I'm not trying to break the whole thing up at once.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform