Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically changing keyboard language
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00840947
Message ID:
00840962
Views:
28
This message has been marked as a message which has helped to the initial question of the thread.
hI jAIME.

<>How do i change the keyboard input language from within VFP? I should need in fact two functions: one that lets me query the current language, and one that lets me select the desired language ( equivalent to using the LEFTALT-LEFTSHIFT key combination ).

You can do this uysing the WinAPI. To query the current language:

DECLARE INTEGER GetKeyboardLayout IN user32 INTEGER idThread

To select the desired language:

DECLARE INTEGER ActivateKeyboardLayout IN user32 INTEGER hkl, INTEGER Flags
Previous
Reply
Map
View

Click here to load this message in the networking platform