Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parse string into array or a cursor
Message
De
09/10/2013 12:10:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01585117
Message ID:
01585119
Vues:
57
This message has been marked as a message which has helped to the initial question of the thread.
>Hi,
>
>I was wondering if there is a function or feature in VFP 9 that would allow me to extract sub-strings from a string, delimited by some character.
>For example, say my delimiter is chr(254) and I have the following string:
>
>cLongString = "some string1chr(254)some string2chr(254)somestring3chr(254)"
>
>I know how to parse the long string using ATCC() and SUBSTR() with a DO WHILE. But I was wondering if there is a more efficient way to get the sub-strings in an array or a cursor or just one sub-string at a time.

Check the additional parameters to aLines() function, you can have your own separator characters.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform