MAKELCID Macro

Public Function MAKELCID (ByVal wLanguageId As Integer, ByVal wSortId As Integer) As Long
	MAKELCID = wSortId * &H10000 + wLanguageId
End Function

Description & Usage

The MAKELCID macro creates a locale identifier. This identifier is based on two things: the locale's language and its string sort order.

Return Value

The macro returns the locale identifer that includes the specified language and string sort order.

Visual Basic-Specific Issues

None.

Parameters

wLanguageId
The language identifier of the locale. Use the MAKELANGID macro to generate this value.
wSortId
One of the following flags specifying the string sort order for the locale:
SORT_DEFAULT
The default sort order.
SORT_CHINESE_BIG5
The Chinese BIG5 sort order.
SORT_CHINESE_UNICODE
The Chinese Unicode sort order.
SORT_JAPANESE_XJIS
The Japanese XJIS sort order.
SORT_JAPANESE_UNICODE
The Japanese Unicode order.
SORT_KOREAN_KSC
The Korean KSC sort order.
SORT_KOREAN_UNICODE
The Korean Unicode sort order.

Constant Definitions

Const SORT_DEFAULT = &H0
Const SORT_CHINESE_BIG5 = &H0
Const SORT_CHINESE_UNICODE = &H1
Const SORT_JAPANESE_XJIS = &H0
Const SORT_JAPANESE_UNICODE = &H1
Const SORT_KOREAN_KSC = &H0
Const SORT_KOREAN_UNICODE = &H1

Back to the Macro list.
Back to the Reference section.


Last Modified: April 16, 2000
This page is copyright © 2000 Paul Kuliniewicz. Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/m/makelcid.html