Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Split, Conquer and Destroy!!
Message
De
25/04/2005 10:09:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01006370
Message ID:
01008074
Vues:
18
>Here is some code to get them all and put them into an array
>
>local lnwct
>lnwct = GETWORDCOUNT(lcstring,',')
>dimension myarray[lnwct]
>for i = 1 to lnwct
> myarray[i] = GETWORDNUM(lcstring,i,',')
>endfor

While a loop like this works, it's much slower than using ALINES(). I tested all this a while back. If I remember correctly, ALINES() is the fastest solution, much faster than the GETWORD functions and somewhat faster than writing your own parsing code.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform