Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I split strings with | in them?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00214427
Message ID:
00214474
Vues:
17
>Hello,
>
>I'm using VFP 6.0.
>
>I would like to split a string which is in a field of a table I use.
>
>Just look:
>
>Meel, dhr. H.J. van|Posthumus, dhr. B.J.
>
>The screen seperation sign is |(besides the + sign). How do I go about splitting this in field into two so I can add another record with just the same information as the old record (so two the same record and the only difference is the field above).
>
>Thanks in advance for your time!

OriginalString = "Meel, dhr. H.J. van|Posthumus, dhr. B.J."
LeftPortion = LEFT(x, ATC("|", x)-1)
RightPortion = SUBSTR(x, ATC("|", x)+1)
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform