Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pulling info out between commas
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01281414
Message ID:
01281415
Views:
8
This message has been marked as the solution to the initial question of the thread.
lcStr = "23,5,18,8,12"
LOCAL laValues[1]
FOR i=1 TO ALINES(laValues,lcStr,1, [,])
	? laValues[i]
ENDFOR
>I have a string that is supplied to my program from another that for some reason I cannot remember how to extract the values between the commas.
>
>For example, I need to do some processing on a small string, "23,5,18,8,12", and return to my procedure 23 5 18 8 12
>
>I do not need to store it, I know how to append with this but I just want to process the numbers or possibly the characters.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform