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:
00214518
Vues:
13
>Hi Erik!
>
>Instead of the | sign. Because if I make a variable like:
>
>OriginalString = "Meel, dhr. H.J. van|Posthumus, dhr. B.J."
>
>And then ?Originalstring then I get a nice print of:
>
>Meel, dhr. H.J. van|Posthumus, dhr. B.J.
>
>So in other words I need to specify the return sign somehow. In C it's /n but what is it in FoxPro?


I don't understnad "return sign". Do you mean you want to put a carriage return in the results instead of "|"? If so, in VFP, carriage return is CHR(13). If you need a line feed as well, it's CHR(13) + CHR(10).

If you mean that you want to leave the "|" in your results, then remove the "-1" from my code example; I put that there specifically to remove the character.

If I am misunderstanding you completely, please clarify.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform