Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract numbers from string
Message
 
 
To
06/01/2003 13:29:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00738451
Message ID:
00738466
Views:
17
Pedro,

You can use alines() to pull that string apart. In VFP6 you need to use:

n = alines( laNumbers, chrtran( lcString, ',', chr(13) )

In VFP7 a new parameter was added so that you can specify , as the delimiter.

>lcString = "18,21,33,45,150,999"
>
>I want extract numbers
>
>18
>21
>33
>45
>150
>999
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform