4D v15.4

OBJECT Get style sheet

Home

 
4D v15.4
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 Automatic style sheet constant in the "Font Styles" theme 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.



See also 

OBJECT SET STYLE SHEET

 
PROPERTIES 

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

 
HISTORY 

Created: 4D v14

 
ARTICLE USAGE

4D Language Reference ( 4D v15.4)
4D Language Reference ( 4D v15)
4D Language Reference ( 4D v15.3)