Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String to Array
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00470612
Message ID:
00470727
Vues:
55
>>You're wrong, not the same way. I think you misunderstand what's meant by multiple delimiters.
lcstring = "text1,text2:text3;text4"
>>? Words(lcstring, ",;:")
STRTRAN() won't do that.
>
>Well, now I see.
>
>Anyway, my function would not work for this case:
>
>"text1,,text2,text3,text4,text5" - should return 5 elements, but will return 6.

What using these functions allowed me to do easily was to create a simple program that would load an array from a string regardless of the delimeters or their nature. While this probably could be done with macro substitution, using the library seemed far more simple and direct.

>FoxTools club - how can you accept new members? :)

< s >One rule. You must SET LIBRARY TO FOXTOOLS early in the main program of all your systems.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform