System.SysUtils.TLanguages.IndexOf
Delphi
function IndexOf(ID: TLocaleID): Integer; overload;
function IndexOf(const LocaleName: string): Integer; overload;
C++
int __fastcall IndexOf(unsigned ID)/* overload */;
int __fastcall IndexOf(const System::UnicodeString LocaleName)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TLanguages |
Description
Returns the index of the first locale in the array with the specified LCID.
Call IndexOf to get the position in the array of a specified locale ID. For example, if U.S. English is the first locale listed in TLanguages, then IndexOf($0409) returns 0.
If the specified LCID is not found, IndexOf returns -1.