Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Format property in Editbox
Message
From
05/10/2006 12:58:15
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01159363
Message ID:
01159760
Views:
44
>Yeah, that was one thing that I thought about after seeing your code. It's always been done by checking the ascii range and changing to the uppercase range, if necessary. But ISALPHA just seems a little better. I just don't think about this function because I don't find much use for it. I don't have to worry about non-English characters, but still the ISALPHA solutions seems to have a slight edge over the old tried and true method.

The old tried and found false method. Even the famous InGrid class has this error. Checking with isalpha() actually works for other codepages.
Of course one still has to check the keypress value for negative values - so I think it'd be

case between(nKey, 32, 255) and isalpha(chr(nKey))

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