Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing comma delimited string
Message
From
23/11/2001 16:19:15
 
 
To
23/11/2001 16:09:56
Ron Neumann
Wausau Financial Systems
Mosinee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00585228
Message ID:
00585233
Views:
23
>I need to parse a comma delimited string in VFP 5.0. Since I can't use ALINES() in 5.0, what would be the best way to parse this string.
>"111111,222,333"

You could use FoxTools Word() and WordNum() functions (I'm pretty sure that their names). They tell you how many words are in a string, and gives you the word you ask for (for example, you want the first, second, or third word). I believe they accept delimiters, otherwise you'll need to convert all the commas to spaces.
Previous
Reply
Map
View

Click here to load this message in the networking platform