VP Get sheet count
VP Get sheet count ( vpAreaName : Text ) : Integer
Parameter | Type | Description | |
---|---|---|---|
vpAreaName | Text | -> | 4D View Pro area form object name |
Function result | Integer | <- | Number of sheets |
Description
The VP Get sheet count
command returns the number of sheets in the document loaded in vpAreaName.
In vpAreaName, pass the name of the 4D View Pro area.
Example
In the following document:
Get the sheet count and set the current sheet to the last sheet:
$count:=VP Get sheet count("ViewProArea")
//set the current sheet to the last sheet (indexing starts at 0)
VP SET CURRENT SHEET("ViewProArea";$count-1)