Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Got an nKeyCode=41025, nShiftAltCtrl=8!
Message
De
09/10/2008 21:33:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Got an nKeyCode=41025, nShiftAltCtrl=8!
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Divers
Thread ID:
01353969
Message ID:
01353969
Vues:
80
Hi Experts,

I have my test machine's Regional Settings set to Chinese (Taiwan) in the Advanced tab, reason being I am doing an app that will accept, store and display Chinese characters.

All works well, except my combobox finder class. Its normal behavior traps keys typed in it via the Keypress event, then builds up a filtered SQL query based on whatever the current DisplayValue is.

Now, when set to Chinese, if I type say "ABC", it shows as "A B C" - note the tab like spacing in between characters.

So, I decided to check out what values are being trapped. It always shows INKEY value of the actual letter typed, plus an additional nKeyCode=41025, nShiftAltCtrl=8!!! So, typing in an A, will yield a nKeyCode=65, nShiftAltCtrl=0, then nKeyCode=41025, nShiftAltCtrl=8!

I lookeup the INKEY() values, no such animal with 41025 and 8.

How do I go about going around this problem? Help!

My combo finder does not search against Chinese character fields, only the English character fields.

Thanks for any insights, tips or help on this matter.

Dennis
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform