Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check Alphabetic letters
Message
From
01/11/2004 06:50:44
 
 
To
06/10/2004 10:36:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00949197
Message ID:
00956486
Views:
11
How to check for alphabetic letters in myfield or which command in VFP to use to check it ?

You have a couple of options:
lcAlpha = [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
*** This removes all the non-alpha characters from the test string
lcResultString = CHRTRAN( lcTestString, CHRTRAN( lcTestString, lcAlpha, [] ), [] )
or you can use FoxTools:
lcAlpha = [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
SET LIBRARY TO FoxTools ADDITIVE
lcResultString = StrFilter( lcTestString, lcAlpha )
Previous
Reply
Map
View

Click here to load this message in the networking platform