Skip to main content
Version: 20 R7 BETA

OBJECT Get name

OBJECT Get name {( selector )} : Text

ParameterTypeDescription
selectorIntegerObject category
Function resultTextName of object

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

Description

The OBJECT Get name command returns the name of a form object.

The command can be used to designate two types of objects according to the value of the selector parameter. In this parameter, you can pass one of the following constants (placed in the "Form Objects (Access)" theme:

  • Object current or selector omitted: If you pass this selector or omit the selector parameter, the command returns the name of the object from which it was called (object method or submethod called by the object method). In this case, the command must be called in the context of a form object, otherwise it returns an empty string.
  • Object with focus: If you pass this selector, the command returns the name of the object that has the focus in the form.

Example

Object method for "bValidateForm" button:

 $btnName:=OBJECT Get name(Object current)

After the execution of this object method, the $btnName variable contains the "bValidateForm" value.

See also

Form Objects (Access)
OBJECT Get pointer
Objects (Forms)