| 4D View v15PV Copy to blob | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D View v15
 PV Copy to blob 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PV Copy to blob ( area ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| area | Longint |   | 4D View area | |||||
| Function result | BLOB |   | Blob containing the selection | |||||
The PV Copy to blob command returns the current cell selection of the area as a BLOB.
The selection does not necessarily have to be continuous (range).
The method below exchanges the content of ranges A1, A2, B1, B2 and A3, A4, B3, B4.
 C_BLOB($Blob) `saving BLOB
 
 PV SELECT RANGE(Area;1;1;2;2;pv selection set) `Select range A1, A2, B1, B2
 PV SPECIAL CUT(Area;1;1;1) `Cut content and place it on the clipboard
 
 PV SELECT RANGE(Area;1;3;2;4;pv selection set) `Select range A3, A4, B3, B4
 $Blob:=PV Copy to blob(Area) `Put selection in a BLOB
 PV SPECIAL PASTE(Area;1;1;1) `Paste content from clipboard
 
 PV GOTO CELL(Area;1;1) `Select cell A1
 PV PASTE FROM BLOB(Area;$Blob;1;1;1;1) `Re-assign what was cleared
	Product:  4D View
	Theme:  PV Cell manipulation
	Number:  
        15830
        
        
        
	
	Created:  4D View 6.8
	
	
	
	
	
	
	
	
	4D View Language ( 4D View v15)
	
	
	
	
	
	
	
 Add a comment
Add a comment