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

Home

 
4D v19
VP IMPORT FROM OBJECT

VP IMPORT FROM OBJECT 


 

VP IMPORT FROM OBJECT ( vpAreaName ; viewPro ) 
Parameter Type   Description
vpAreaName  Text in 4D View Pro area form object name
viewPro  Object in 4D View Pro object

The VP IMPORT FROM OBJECT command imports and displays the viewPro 4D View Pro object in the vpAreaName 4D View Pro area. The imported object contents replaces any data already inserted in the area.

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 viewPro, pass a valid 4D View Pro object. This object can have been created using VP Export to object or manually. For more information on 4D View Pro objects, please refer to the 4D View Pro object section.

An error is returned if the viewPro object is invalid.

Example  

You want to import a spreadsheet that was previously saved in an object field:

 QUERY([VPWorkBooks];[VPWorkBooks]ID=10)
 VP IMPORT FROM OBJECT("ViewProArea1";[VPWorkBooks]SPBook)



See also 

Handling 4D View Pro areas
VP Export to object

 
PROPERTIES 

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

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v16 R4

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)