This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19
VP Export to object

VP Export to object 


 

VP Export to object ( vpAreaName {; option} ) -> Function result 
Parameter Type   Description
vpAreaName  Text in 4D View Pro area form object name
option  Object in Export option
Function result  Object in 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:

 

PropertyTypeDescription
includeFormatInfobooleanTrue 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.version

You want to export the area, excluding formatting information:

 C_OBJECT($vpObj)
 $vpObj:=VP Export to object("vpArea";New object("includeFormatInfo";False))



See also 

Handling 4D View Pro areas
VP Convert to picture
VP EXPORT DOCUMENT
VP IMPORT FROM OBJECT

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Language
Number: 9029

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v16 R4

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)