Setting the initial keyboard language to Russian (by which code?)

G

Guest

The KeyboardLanguage uses the following settings.

Setting Visual Basic Description
System 0 Sets the initial keyboard language to the most recently used
keyboard language.
English 11 Sets the initial keyboard language to English.
Arabic 3 Sets the initial keyboard language to Arabic.
Hebrew 15 Sets the initial keyboard language to Hebrew.
<<<<<<<<<<<<<<<<<
Can anybody tell me which code corresponds to Russian language ?
 
B

Brendan Reynolds

I found the following in the Access 2003 VBA help file ...

<quote>
Valid values for this property are 0 (zero), which corresponds to the
default system language, or plid + 2 where plid is the primary language ID
of a language installed on the current system. For example, the primary
language ID of English is 9, so the corresponding KeyboardLanguage setting
is 11. For a list of languages and their primary language IDs, search for
"Primary Language IDs" in the MSDN Web site. (An exception to this list is
Traditional Chinese which is represented by the value 200.)
</quote>

Unfortunately, using the search phrase suggested above won't actually find
the required list, but with a little hunting I did manage to find it ...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_238z.asp

The list gives the values in hex, using C/C++ syntax, where the value for
Russian is 0x0419. In VBA, hexadecimal numbers are identified with a &h
prefix rather than the 0x prefix, so 0x0419 becomes &h0419 or decimal 1049.

The above is my understanding of how I think it works - this is not an area
in which I have practical experience, and given that my knowledge of Russian
is pretty much zero, I wouldn't know how to test it. I hope it works for
you.
 
P

paulgor

There is another (easier?) way to see the values like 0x0419 for
keyboard -

Start/Run - type regedit
and navigate to

HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Control
Keyboard Layouts

There you also can see that Russian one is assigned 419 :)


--
Regards,
Paul Gorodyansky
"Cyrillic (Russian): instructions for Windows and Internet":
http://RusWin.net
Russian On-screen Keyboard: http://Kbd.RusWin.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top