Skip to main content
Version: Next

VP Cell

VP Cell ( vpAreaName ; column : Integer ; row : Integer ; Text { ; sheet : Integer } ) : Object

ParameterTypeDescription
vpAreaNameText->4D View Pro area form object name
columnLongint->Column index
rowLongint->Row index
sheetInteger->Sheet index (current sheet if omitted)
ResultObject<-Range object of a single cell

Description

The VP Cell command returns a new range object referencing a specific cell.

This command is intended for ranges of a single cell. To create a range object for multiple cells, use the VP Cells command.

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 column parameter defines the column of the cell range's position. Pass the column index in this parameter.

The row parameter defines the row of the cell range's position. Pass the row index in this parameter.

In the optional sheet parameter, you can indicate the index of the sheet where the range will be defined. If omitted or if you pass vk current sheet, the current spreadsheet is used by default.

indexing starts at 0.

Example

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

vp-cell

The code would be:

$cell:=VP Cell("ViewProArea";2;4) // C5

See also

VP All
VP Cells
VP Column
VP Combine ranges
VP Name
VP Row