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:
00551459
Vues:
17
Sweet,

Thanks Larry, I thought I had seen it somewhere but couldn't find it.


>>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
>
>Roi,
>Alines() in VFP 7 does this. If you want to duplicate the functionality in VFP 6, you have to transform the delimiter to Chr(13). Ex.

>VFP 7
>alines(lalines,[George was here;Allan was here;Glen was here],.F.,";")
>
>VFP 6
>alines(lalines,strtran([George was here;Allan was here;Glen was here],";",chr(13)))
>
>HTH.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform