4D v17VP IMPORT DOCUMENT |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v17
VP IMPORT DOCUMENT
|
VP IMPORT DOCUMENT ( vpAreaName ; filePath ) | ||||||||
Parameter | Type | Description | ||||||
vpAreaName | Text |
![]() |
4D View Pro area form object name | |||||
filePath | Text |
![]() |
Pathname of the document | |||||
The VP IMPORT DOCUMENT command imports and displays the 4D View Pro document designated by filePath in the 4D View Pro area vpAreaName. The imported document replaces any data already inserted in the area.
Pass in vpAreaName the object name property of the area in the 4D form. If you pass an invalid name, an error is returned.
In filePath, pass the destination path and name of the document to be imported. Only 4D View Pro documents (extension ".4vp") are supported by the command. You must pass a full path, unless the document is located at the same level as the database structure file, in which case you can just pass its name.
An error is returned if the filePath parameter is invalid, or if the file is missing or malformed.
You want to import a default 4D View Pro document stored on the disk when the form is open:
C_TEXT($docPath)
If(Form event=On VP Ready) //4D View Pro area loaded and ready
$docPath:="C:\\Bases\\ViewProDocs\\MyExport.4VP"
VP IMPORT DOCUMENT("VPArea";$docPath)
End if
Product: 4D
Theme: 4D View Pro Language
Created: 4D v16 R4
4D View Pro Reference ( 4D v17)