RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLanguages.IndexOf Method

Returns the index of the first locale in the array with the specified LCID.

Pascal
function IndexOf(ID: LCID): Integer;
C++
__fastcall int IndexOf(LCID ID);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!