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,
- an empty string ("") if no style sheet is assigned, or
- if an automatic style sheet is assigned, one of the following constants found in the "Font Styles" theme:
 
	
		
			| Constant | Type | Value | Comment |  
			| Automatic style sheet | String | __automatic__ | Used by default for all objects |  
			| Automatic style sheet_additional | String | __automatic_additional_text__ | Supported by static text, fields and variables only. Used for additional text in dialog boxes. |  
			| Automatic style sheet_main | String | __automatic_main_text__ | Supported by static text, fields and variables only. Used for main text in dialog boxes. |  
 
If the command designates several objects, the style sheet returned is only meaningful if the style sheet is assigned to all of the objects.