4D v14.3

OBJECT Get style sheet

Home

 
4D v14.3
OBJECT Get style sheet

OBJECT Get style sheet 


 

OBJECT Get style sheet ( {* ;} 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 Name of style sheet

The OBJECT Get style sheet command returns the name of the style sheet associated with the object(s) designated by the object and * parameters.

Style sheets may have been assigned in Design mode using the Property List, or for the current process using the OBJECT SET STYLE SHEET 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).

The command can return either:

  • a style sheet name,
  • the string "__automatic__" if the "Automatic" style sheet is assigned,
  • an empty string ("") if no style sheet is assigned.

If the command designates several objects, the style sheet returned is only meaningful if the style sheet is assigned to all of the objects.

 
PROPERTIES 

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

 
HISTORY 

New
Created: 4D v14

 
SEE ALSO 

OBJECT SET STYLE SHEET

 
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)