4D v14.3

OBJECT Get name

Home

 
4D v14.3
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 (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.

 
PROPERTIES 

Product: 4D
Theme: User Interface
Number: 1087

 
HISTORY 

Created: 4D v12

 
SEE ALSO 

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

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)