4D v14.3

OBJECT Get placeholder

Home

 
4D v14.3
OBJECT Get placeholder

OBJECT Get placeholder 


 

OBJECT Get placeholder ( {* ;} object ) -> Function result 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a field or variable
object  Form object in Object name (if * is specified) or
Field or variable (if * is omitted)
Function result  Text in Placeholder text associated with object

The OBJECT Get placeholder command returns the placeholder text associated with the object(s) designated by the object and * parameters. If there is no placeholder text associated with the object, the command returns an empty string.

You can define the placeholder text either using the Property List, or using the OBJECT SET PLACEHOLDER command.

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

If the placeholder is an xliff reference defined using the Property List, the command returns the original reference in the form ":xliff:resname", and not its calculated value.

Example  

You want to get the field placeholder text:

 $txt:=OBJECT Get placeholder([People]LastName)

 
PROPERTIES 

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

 
HISTORY 

New
Created: 4D v14

 
SEE ALSO 

OBJECT SET PLACEHOLDER

 
ARTICLE USAGE

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