Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find number within string
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00237774
Message ID:
00237866
Views:
7
>Hi Todd,
>
>>You may need to check more carefully to see if there is text between numbers and pull the numbers out seperately. Then again, you may not, and I may be wasting bandwidth :-)
>
>You are right. And as Ed said I'd simply modify the line. But instead of blanks I'd use CHR(13). Then I can use MLINE(), or in VFP 6 ALINES(), to loop through all numbers, skipping over empty lines. And just in case it might contain decimal numbers, I'd add "." and "-" to the set of characters that are not replaced.
>
Hi Christof,

With my suggestion, assuming that there was some delimeter to determine where a number began and ended, I'd use Words() and Wordnum() from Foxtools< g >.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform