4D v15WP Import document |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v15
WP Import document
|
WP Import document ( filePath ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
filePath | String |
![]() |
Path to a 4D Write document (.4w7 or .4wt) | |||||
Function result | Object |
![]() |
4D Write Pro object | |||||
The WP Import document command converts an existing 4D Write document (.4w7 or .4wt) to a new 4D Write Pro object.
In the filePath parameter, pass the full path of a 4D Write document stored on disk. If the document is located at the same level as the structure file, you can just pass the document name.
After its execution, the command returns the 4D Write Pro object resulting from this conversion. For a detailed list of 4D Write features that are currently supported in 4D Write Pro objects, please refer to the Importing 4D Write documents section.
Note: If you want to import a 4D Write document stored in a 4D BLOB field, you can also consider using the WP New command.
An error is returned if the filePath parameter is invalid, if the file is missing, or if the file format is not supported.
C_OBJECT(WPDoc)
WPDoc:=WP Import document("C:\\documents\\4DWriteDocs\\Letter.4w7")
Product: 4D
Theme: 4D Write Pro Language
Created: 4D v14 R5
4D Write Pro Reference ( 4D v15)