The VP Get selection command returns a new range object referencing the current selected 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.
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 |
Value |
Comment |
vk current sheet |
-1 |
Designates current sheet of the 4D View Pro area (default) |
The following code:
will retrieve the coordinates of all the cells in the current selection:
