Skip to main content
Version: 20 R6

VP ADD SHEET

VP ADD SHEET ( vpAreaName : Text )
VP ADD SHEET ( vpAreaName : Text ; index : Integer )
VP ADD SHEET ( vpAreaName : Text ; sheet : Integer ; name : Text )

ParameterTypeDescription
vpAreaNameText->4D View Pro area form object name
sheetInteger->Index of the new sheet
nameText->Sheet name

Description

The VP ADD SHEET command inserts a sheet in the document loaded in vpAreaName.

In vpAreaName, pass the name of the 4D View Pro area.

In sheet, you can pass an index for the new sheet. If the passed index is inferior to or equal to 0, the command inserts the new sheet at the beginning. If index exceeds the number of sheets, the command inserts the new sheet after the existing ones.

Indexing starts at 0.

In name, you can pass a name for the new sheet. The new name cannot contain the following characters: *, :, [, ], ?,\,/

Example

The document currently has 3 sheets:

vp-document-with-3-sheets

To insert a sheet at the third position (index 2) and name it "March":

VP ADD SHEET("ViewProArea";2;"March")

vp-add-sheet

See also

VP REMOVE SHEET