Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CSVtoArray
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00596910
Message ID:
00596917
Views:
27
>>Anyone have a routine built that will convert a string of comma seperated values to a 1 dimensional array, each value being it's own element? Thanks,
>>jfh
>
>
lcStr = "One, Two, Three"
>DIMENSION laArray[1]
>= ALINES( laArray, STRTRAN(lcStr, ",", CHR(13)))
>* in VFP 7
>= ALINES( laArray, lcStr, ",")
>
Thanks Sergey, I knew there was something, just couldn't remember the ALINES() function.
jfh
Previous
Reply
Map
View

Click here to load this message in the networking platform