Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check Alphabetic letters
Message
From
06/10/2004 16:09:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/10/2004 13:18:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00949197
Message ID:
00949331
Views:
9
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform