Skip to main content
Version: 20 R7 BETA

OBJECT Get keyboard layout

OBJECT Get keyboard layout ( {* ;} object ) -> Function result

ParameterTypeDescription
*OperatorIf specified, object is an object name (string)If omitted, object is a variable or field
objectanyObject Name (if * is specified) or Variable or field (if * is omitted)
Function resultStringLanguage code of layout, "" = no layout

This command is not thread-safe, it cannot be used in preemptive code.

Description

The OBJECT Get keyboard layout command returns the current keyboard layout associated with the object(s) designated by the object and * parameters for the current process.

If you pass the optional * parameter, this indicates that the object parameter is an object name (a string). If you do not pass this parameter, this indicates that the object is a variable or a field. In this case, you pass a reference instead of a name.

The command returns a string indicating the language code used, based on RFC3066, ISO639 and ISO3166. For more information, refer to the description of the SET DATABASE LOCALIZATION command.

See also

OBJECT SET KEYBOARD LAYOUT