4D v16.3

LIST OF STYLE SHEETS

Home

 
4D v16.3
LIST OF STYLE SHEETS

LIST OF STYLE SHEETS 


 

LIST OF STYLE SHEETS ( arrStyleSheets ) 
Parameter Type   Description
arrStyleSheets  Text array in Names of style sheets defined in the application

The LIST OF STYLE SHEETS command returns the list of application style sheets in the arrStyleSheets array.

If it was not already defined previously, the arrStyleSheets text array is created by the command. It is automatically sized according to the number of style sheets defined. 

After executing the command, each element of the array contains the name of a style sheet. These names are sorted alphabetically, as in the style sheet editor. The first array element always contains "__automatic__", which represents the "Automatic" style sheet.

Note: For compatibility reasons, the automatic style sheets "__automatic_main_text__" and "__automatic_additional_text__" are not returned by this command. However, they are still available in the forms. 

Example  

In your application, the following style sheets are defined:

If you execute the following code:

 LIST OF STYLE SHEETS($arrStyles)
  // $arrStyles{1} contains "__automatic__"
  // $arrStyles{2} contains "Buttons"
  // $arrStyles{3} contains "default"
  // $arrStyles{4} contains "Input_fields"
  // $arrStyles{5} contains "Labels"
  // $arrStyles{6} contains "Variables"



See also 

GET STYLE SHEET INFO
OBJECT SET STYLE SHEET

 
PROPERTIES 

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

 
HISTORY 

Created: 4D v14

 
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)