This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20.6
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. 

This command can only be used in binary databases. In project architecture, the array is not filled.  

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

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v14

 
ARTICLE USAGE

4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)