Skip to main content
Version: Next

LIST OF STYLE SHEETS

LIST OF STYLE SHEETS ( arrStyleSheets )

ParameterTypeDescription
arrStyleSheetsText array🡘Names of style sheets defined in the application

Description

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.

Compatibility Note

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