Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get NUMERIC
Message
From
17/09/2004 10:20:14
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
17/09/2004 10:08:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00943345
Message ID:
00943355
Views:
17
>Hello,
>
>myfield = '? AA 123456789 '
>
>how to get the numeric value starts from 123456789 and denies all spaces and
>other characters such as AA ? !!!

If you're loading foxtools.fll (it's in your home() directory, and should be distributed as a separate file with your executable), then it's simple:
myval=strfilter(myfield, "0123456879.-")
If not, there's a workaround using chrtran():
myval=chrtran(myfield, chrtran(myfield, "0123456789.-",""),"")

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform