The VP SET DEFAULT STYLE command defines the style in the styleObj as the default style for a sheet.
In vpAreaName, pass the name of the 4D View Pro area. If you pass a name that does not exist, an error is returned.
The styleObj lets you pass an object containing style settings. You can use an existing style sheet or you can create a new style. For more information, see 4D View Pro Style Objects and Style Sheets.
In the optional sheet parameter, you can designate a specific spreadsheet where the style will be defined. If omitted, the current spreadsheet is used by default. You can explicitly select the current spreadsheet with the following constant:
Constant |
Type |
Value |
Comment |
vk current sheet |
Longint |
-1 |
Designates current sheet of the 4D View Pro area (default) |
This code:
will set the document's default style to:
