| 4D v18VP Export to object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v18
 VP Export to object 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| VP Export to object ( vpAreaName {; option} ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| vpAreaName | Text |   | 4D View Pro area form object name | |||||
| option | Object |   | Export option | |||||
| Function result | Object |   | 4D View Pro object | |||||
The VP Export to object command returns the 4D View Pro object attached to the 4D View Pro area vpAreaName. You can use this command for example to store the 4D View Pro area in a 4D database object field.
In vpAreaName, pass the name of the 4D View Pro area. If you pass a name that does not exist, an error is returned.
In the option parameter, you can pass the following export option, if required:
| Property | Type | Description | 
| includeFormatInfo | boolean | True to include formatting information, false otherwise (default is true). Formatting information is useful in some cases, e.g. for export to SVG. On the other hand, setting this property to false allows reducing export time. | 
For more information on 4D View Pro objects, please refer to the 4D View Pro object paragraph.
You want to get the "version" property of the current 4D View Pro area:
 C_OBJECT($vpAreaObj)
 C_LONGINT($vpVersion)
 $vpAreaObj:=VP Export to object("vpArea")
  // $vpVersion:=OB Get($vpAreaObj;"version")
 $vpVersion:=$vpAreaObj.versionYou want to export the area, excluding formatting information:
 C_OBJECT($vpObj)
 $vpObj:=VP Export to object("vpArea";New object("includeFormatInfo";False))
									Handling 4D View Pro areas
									
									VP Convert to picture
									
									VP EXPORT DOCUMENT
									
									VP IMPORT FROM OBJECT
									
	Product:  4D
	Theme:  4D View Pro Language
	Number:  
        9029
        
        
        
	
	Created:  4D v16 R4
	
	
	
	
	
	
	
	
	4D View Pro Reference ( 4D v18)
	
	
	
 Add a comment
Add a comment