version 6.8
PV Copy to blob (area) Blob
| Parameter | Type | Description | |
| area | Longint | 4D View area | |
| Function result | Blob | Blob containing the selection |
Description
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
See Also
PV Create picture, PV PASTE FROM BLOB.