Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numbers in character field?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00448788
Message ID:
00448799
Vues:
15
>>Hi all,
>> I'm looking for a relatively easy way to identify if a character field contains only numbers. My application is testing for valid/real postal addresses and one of the checks I'd like to make is if the field contains nothing but numerical data. Can anyone point the way?
>>TIA,
>>Pete Adams
>
>Try:
>empty(alltrim(Chrtran(mystring,"1234567890","          ")))
>Returns .T. if all numbers


It'll also return .T. if there are spaces between numbers.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform