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:
01281424
Views:
6
Another option is using GETWORDNUM()
lcStr="23,5,18,8,12"
nCount = OCCURS(",",lcStr)
? nCount
FOR i = 1 TO nCount+1
   ? GETWORDNUM(lcStr,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.
Previous
Reply
Map
View

Click here to load this message in the networking platform