Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Got an nKeyCode=41025, nShiftAltCtrl=8!
Message
From
09/10/2008 21:33:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Got an nKeyCode=41025, nShiftAltCtrl=8!
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Miscellaneous
Thread ID:
01353969
Message ID:
01353969
Views:
81
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
Next
Reply
Map
View

Click here to load this message in the networking platform