Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for a function similar to VB's Split
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00551452
Message ID:
00551458
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All,
>
>Anyone know if there is function here somewhere that works like VB's Split function?
>
>You pass it a string and a delimiter, and it returns an array with each portion of the string split into an element of the array.
>
>TIA
If you doun't have CHR(13) in your string than you can use something like this
Dimension laResult[1]
lcString = "Item1,Item2,Item3"
lcDelim = ","
lnItems = ALines( laResult, Strtran(lcString, lcDelim, Chr(13) ))
In VFP 7 you can even specify delimeters for Alines().
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform