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:
00470714
Vues:
50
>>It works with multiple delimiters too. See strtran(lcStr,"**",chr(13)) works just fine. I had strtran() in my original program. For a moment I thought about chrtran(), but almost immediatelly understood, it would not work for multiple delimiters.
>
>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.

FoxTools club - how can you accept new members? :)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform