4D v13

PV New offscreen area

Home

 
4D View v13
PV New offscreen area

PV New offscreen area 


 

PV New offscreen area -> Function result 
Parameter Type   Description
Function result  Longint in 4D View area

The PV New offscreen area command builds a 4D View area in memory and returns the reference to this area. This reference should be passed in any 4D View command requiring a reference to an area.

When you no longer need the area, do not forget to clear it using the PV DELETE OFFSCREEN AREA command in order to free the space occupied in memory by the area.

Example  

This method allows copying the content of a template so that you can copy it in your screen area.

 C_LONGINT($OffscreenArea`Offscreen area reference
 
 QUERY([Model];[Model]Ref="MyModel") `Find the desired template
 $OffscreenArea:=PV New offscreen area `Create an offscreen area
  `Get template
 PV BLOB TO AREA($OffscreenArea;[Model]BlobField_)
 PV SELECT RANGE($OffscreenArea;1;1;3;3;pv selection set)
 PV EXECUTE COMMAND($OffscreenArea;pv cmd edit copy`Copy selection
 PV DELETE OFFSCREEN AREA($OffscreenArea`Free memory
 PV GOTO CELL(Area;1;5)
 PV EXECUTE COMMAND(Area;pv cmd edit paste`Paste selection in active area

 
PROPERTIES 

Product: 4D
Theme: PV Area
Number: 15998

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D View 6.8

 
SEE ALSO 

PV BLOB TO AREA
PV DELETE OFFSCREEN AREA