Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid field name function
Message
From
23/02/2001 17:53:51
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00478825
Message ID:
00479097
Views:
31
>Hi!
>
>llIsIdentifier = IsAlpha(cName) and chrtran(upper(cName), "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_", "") == ""
>

Actually, the lead character can be an underscore (_) as well, and unless the name is a long name in a DBC, it can't exceed 10 characters.

>
>
>>Is there a function in Foxpro to tell me if a name is a valid field name or do I have to write this myself?
>>
>>It seems like i've seen it somewhere but I can't seem to find it.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform