Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get NUMERIC
Message
De
17/09/2004 10:20:14
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
17/09/2004 10:08:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00943345
Message ID:
00943355
Vues:
19
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform