Skip to main content
Version: Next

VP SET ROW COUNT

VP SET ROW COUNT ( vpAreaName : Text ; rowCount : Integer { ; sheet : Integer } )

ParameterTypeDescription
vpAreaNameText->4D View Pro area form object name
rowCountInteger->Number of rows
sheetInteger->Sheet index (current sheet if omitted)

Description

The VP SET ROW COUNT command defines the total number of rows in vpAreaName.

In vpAreaName, pass the name of the 4D View Pro area. If you pass a name that does not exist, an error is returned.

Pass the total number of rows in the rowCount parameter. rowCount must be greater than 0.

In the optional sheet parameter, you can designate a specific spreadsheet where the rowCount will be applied (counting begins at 0). If omitted, the current spreadsheet is used by default. You can explicitly select the current spreadsheet with the following constant:

  • vk current sheet

Example

The following code defines five rows in the 4D View Pro area:

VP SET ROW COUNT("ViewProArea";5)

See also

VP Get column count
VP get row-count
VP SET COLUMN COUNT