Icon GetLocaleNames Method

procedure GetLocaleNames(List: TStrings)

Usage

Use the GetLocaleNames method to populate a list of all locale names and their IDs that are available through the operating system. Use the Objects property of the string list parameter to access the 32-bit integer ID of a given locale. However, you will have to cast it from a TObject to an integer first. Many SQL statements in DBISAM require the name of a locale as part of a LOCALE clause, and this method can allow the application to offer the user a choice of the desired locale.

Information This method will only return one name, 'ANSI Standard', under Kylix and Linux since that is the only locale available currently under Linux for DBISAM.
Image