This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19
VP Cells
|
VP Cells ( vpAreaName ; column ; row ; columnCount ; rowCount {; sheet} ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
vpAreaName | Text |
![]() |
4D View Pro area form object name | |||||
column | Longint |
![]() |
Column index | |||||
row | Longint |
![]() |
Row index | |||||
columnCount | Longint |
![]() |
Number of columns | |||||
rowCount | Longint |
![]() |
Number of rows | |||||
sheet | Longint |
![]() |
Sheet index (current sheet if omitted) | |||||
Function result | Object |
![]() |
Range object of cells | |||||
The VP Cells command returns a new range object referencing specific cells.
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 first column of the cell range. Pass the column index (counting begins at 0) in this parameter. If the range is within multiple columns, you should also use the columnCount parameter.
In the row parameter, you can define the row(s) of the cell range's position. Pass the row index (counting begins at 0) in this parameter. If the range is within multiple rows, you should also use the rowCount parameter.
The columnCount parameter allows you to define the total number of columns the range is within. columnCount must be greater than 0.
The rowCount parameter allows you to define the total number of rows the range is within. rowCount must be greater than 0.
In the optional sheet parameter, you can designate a specific spreadsheet where the range will be defined (counting begins at 0). If omitted, the current spreadsheet is used by default. You can explicitly select the current spreadsheet with the following constant:
Constant | Type | Value | Comment |
vk current sheet | Longint | -1 | Designates current sheet of the 4D View Pro area (default) |
You want to define a range object for the following cells (on the current sheet):
The code would be:
$cells:=VP Cells("ViewProArea";2;4;2;3) // C5 to D7
4D View Pro Range Object Properties
VP All
VP Cell
VP Column
VP Combine ranges
VP Name
VP Row
Product: 4D
Theme: 4D View Pro Language
Number:
9537
Created: 4D v17 R4
4D View Pro Reference ( 4D v19)