RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.TSysLocale Record

TSysLocale represents locale information.

Pascal
TSysLocale = packed record
  DefaultLCID: Integer;
  PriLangID: Integer;
  SubLangID: Integer;
  FarEast: Boolean;
  MiddleEast: Boolean;
end;
C++
struct TSysLocale {
  int DefaultLCID;
  int PriLangID;
  int SubLangID;
  Boolean FarEast;
  Boolean MiddleEast;
};

The TSysLocale type represents a locale. The locale determines how dates and times are formatted, how items are alphabetically sorted, and how strings are compared. 

The DefaultLCID field represents the locale identifier. This is a 32-bit value that specifies a default sort order and a default language identifier. 

The PirLangID field specifies the primary type of the language identifier. This is one of the constants that identify a language group, such as LANG_ENGLISH or LANG_FRENCH

The SubLangID field specifies the subtype of the language identifier. This is one of the constants that identify a language subgroup, such as SUBLANG_ENGLISH_US or SUBLANG_FRENCH_CANADIAN

FarEast is true or nonzero if User32.dll supports DBCS; false or zero otherwise. In other words, FarEast is true or nonzero if the double-byte character-set (DBCS) version of User.exe is installed; false or zero otherwise. 

MiddleEast is true if the system is enabled for Hebrew and Arabic languages; false otherwise. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!