4D View v16

PV SELECT COLUMNS

Home

 
4D View v16
PV SELECT COLUMNS

PV SELECT COLUMNS 


 

PV SELECT COLUMNS ( area ; first ; last ; action ) 
Parameter Type   Description
area  Longint in 4D View area
first  Longint in First selected column
last  Longint in Last selected column
action  Integer in Select action

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:

Constant Type Value Comment
pv selection add Longint 1 The new selection is added to the existing selection.
pv selection reduce Longint 2 The selection is removed from the existing selection.
pv selection set Longint 0 The new selection replaces the existing selection.

Example  

We want to select both the column and the row of the current cell.

 C_LONGINT($Column;$Row//To get coordinates
 C_LONGINT($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 

PV Is column selected

 
PROPERTIES 

Product: 4D View
Theme: PV Selection
Number: 15943

 
HISTORY 

Modified: 4D View 2004.4

 
ARTICLE USAGE

4D View Language ( 4D View v16)