Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Split, Conquer and Destroy!!
Message
From
25/04/2005 10:09:38
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01006370
Message ID:
01008074
Views:
19
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform