PV SELECT COLUMNS
version 2004.4 (Modified)
PV SELECT COLUMNS (area; first; last; action)
Parameter | Type | Description | |
area | Longint | 4D View area | |
first | Longint | First selected column | |
last | Longint | Last selected column | |
action | Integer | Select action |
Description
The PV SELECT COLUMNS command selects area columns between included column numbers first and last.
The action parameter allows defining the selection action that you want to execute when a selection of columns already exists: you can add the columns to the selection, reduce the selection to the columns or remove the column(s) from the selection.
action is defined using the PV Selection action constants.
Example
We want to select both the column and the row of the current cell.
C_LONGINT($Column;$Row) `To get coordinates
C_INTEGER($ColSelect;$RowSelect) `To know if the column/row are already selected
PV GET CURRENT CELL (Area;$Column;$Row) `Getting current cell coordinates
$ColSelect:=PV Is column selected (Area;$Column)
$RowSelect:=PV Is row selected (Area;$Row)
If ($ColSelect=0) `The column is not selected
PV SELECT COLUMNS (Area;$Column;$Column;pv selection add ) `Select it
End if
If ($RowSelect=0) `The row is not selected
PV SELECT ROWS (Area;$Row;$Row;pv selection add ) `Select it
End if
See Also
Constants
PV Selection action theme.