Skip to main content
Version: Next

VP Row

VP Row ( vpAreaName : Text; row : Integer { ; rowCount : Integer { ; sheet : Integer } } ) : Object

ParameterTypeDescription
vpAreaNameText->4D View Pro area form object name
rowInteger->Row index
rowCountInteger->Number of rows

|sheet |Integer|->|Sheet index (current sheet if omitted)| |Result |Object|<-|Range object of row(s)|

Description

The VP Row command returns a new range object referencing a specific row or rows.

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 row parameter defines the first row of the row range. Pass the row index (counting begins at 0) in this parameter. If the range contains multiple rows, you should also use the optional rowCount parameter.

The optional rowCount parameter allows you to define the total number of rows of the range. rowCount must be greater than 0. If omitted, the value will be set to 1 by default.

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

  • vk current sheet

Example

You want to define a range object for the row shown below (on the current spreadsheet):

You can write:

$row:=VP Row("ViewProArea";9) // row 10

See also

VP All
VP Cell
VP Cells
VP Column
VP Combine ranges
VP Name