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 */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TLanguages |
Description
Renvoie l'indice de la première locale du tableau ayant le LCID spécifié.
Appelez IndexOf pour obtenir la position dans le tableau de l'ID de locale spécifié. Par exemple, si l'anglais parlé aux Etats-Unis est la première locale listée dans TLanguages, IndexOf($0409) renvoie 0.
Si le LCID spécifié n'est pas trouvé, IndexOf renvoie -1.