4D v13

PV Copy to blob

Home

 
4D View v13
PV Copy to blob

PV Copy to blob 


 

PV Copy to blob ( area ) -> Function result 
Parameter Type   Description
area  Longint in 4D View area
Function result  BLOB in 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).

Example  

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

 
PROPERTIES 

Product: 4D
Theme: PV Cell manipulation
Number: 15830

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D View 6.8

 
SEE ALSO 

PV Create picture
PV PASTE FROM BLOB