4D View v14

PV New offscreen area

Home

 
4D View v14
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 View
Theme: PV Area
Number: 15998

 
HISTORY 

Created: 4D View 6.8

 
SEE ALSO 

PV BLOB TO AREA
PV DELETE OFFSCREEN AREA

 
ARTICLE USAGE

4D View Language ( 4D View v11.4)
4D View Language ( 4D View v12)
4D View Language ( 4D v13)
4D View Language ( 4D View v14 R2)
4D View Language ( 4D View v14)
4D View Language ( 4D View v14 R3)
4D View Language ( 4D View v14 R4)