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:=$vpAreaObj.version
You want to export the area, excluding formatting information:
C_OBJECT($vpObj)
$vpObj:=VP Export to object("vpArea";New object("includeFormatInfo";False))