Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Edit box class - user press enter - leave box
Message
De
14/06/2007 18:09:59
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01233227
Message ID:
01233335
Vues:
11
>>
if between(nKeyCode, 64, 255) and isupper(chr(nKeyCode))
>>
>>You only need to compile the code which does that in the codepage of your choice - presumably 1251. I tried with žšđčć and ŽŠĐČĆ, and it recognized each one of them properly - my cpcurr() is 1250.
>
>
>Thanks Dragan,
>My point was that there a lot more than 97 - 122 range to make some char UPPER() :o)

Exactly - which is why I'm going 64 to 255. For some other purposes, 32 to 255 is required. Amazingly though, at least for CP 852 and 1250 (haven't tried 855 and 1251), upper(), lower(), isupper() are returning correct results.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform