4D v13.4

OBJECT Get name

Home

 
4D v13.4
OBJECT Get name

OBJECT Get name 


 

OBJECT Get name {( selector )} -> Function result 
Parameter Type   Description
selector  Longint in Object category
Function result  Text in Name of object

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" 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.

 
PROPERTIES 

Product: 4D
Theme: User Interface
Number: 1087

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D v12

 
SEE ALSO 

Form objects
OBJECT Get pointer
Object Properties