4D v16.3

OBJECT Get name

Home

 
4D v16.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.



See also 

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

 
PROPERTIES 

Product: 4D
Theme: Objects (Forms)
Number: 1087

 
HISTORY 

Created: 4D v12

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)