| 4D View v15PV SELECT COLUMNS | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D View v15
 PV SELECT COLUMNS 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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 | |||||
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. | 
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
	Product:  4D View
	Theme:  PV Selection
	Number:  
        15943
        
        
        
	
	Modified:  4D View 2004.4
	4D View Language ( 4D View v15)
	
	
	
	
	
	
	
 Add a comment
Add a comment