Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check Alphabetic letters
Message
De
06/10/2004 16:09:39
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
06/10/2004 13:18:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00949197
Message ID:
00949331
Vues:
10
>>Hello,
>>
>>How to check for alphabetic letters in myfield or which command in VFP to use to check it ?
>>
>>myfield = 'aaaBBBccc' good
>>myfield = 'aaa123ddd' no good skip this row.
>>
>>Tia
>
>
>? Test('aaaBBBccc')
>? Test('aaa123ddd')
>
>PROCEDURE Test(ss)
>RETURN EMPTY(AT("0",CHRTRAN(m.ss, "123456789", "000000000")))
>
Simpler:
procedure test(ss)
return ss==chrtran(ss, "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