Skip to main content
Version: 21 R4 BETA

VP Get sheet count

VP Get sheet count ( vpAreaName : Text ) : Integer

ParameterTypeDescription
vpAreaNameText->4D View Pro area form object name
Function resultInteger<-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)

See also​

VP Get sheet index
VP SET SHEET COUNT