| 4D View v15PV New offscreen area | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D View v15
 PV New offscreen area 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PV New offscreen area -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| Function result | Longint |   | 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.
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
	Product:  4D View
	Theme:  PV Area
	Number:  
        15998
        
        
        
	
	Created:  4D View 6.8
	
	
	
	
	
	
	
	
	4D View Language ( 4D View v15)
	
	
	
	
	
	
	
 Add a comment
Add a comment