4D v16WP New |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16
WP New
WP New
The WP New command creates and returns a 4D Write Pro object. By default, if you omit the source parameter, the command returns an empty 4D Write Pro object. You can also use the source parameter, in which case the new 4D Write Pro object will be filled with the contents of the source. You can pass:
The returned object is a complete document that can be passed to the WP INSERT DOCUMENT command, for example. You want to create an empty 4D Write Pro object: myWPObject:=WP New You want to create a 4D Write Pro object containing a simple 4D expression reference: C_TEXT(myText) You want to initialize your Write Pro area with a previously-created template: //Export template from an existing area You want to import a 4D Write document stored in a 4D field of the current record into a new 4D Write Pro area: C_OBJECT(wpArea) You have defined a template document with different preformatted parts, each of them being stored as a bookmark. When producing a final document from the template, you can extract any bookmark as a new document and insert it in the final document. ARRAY TEXT($_BookmarkNames;0)
See also
|
PROPERTIES
Product: 4D HISTORY
ARTICLE USAGE
4D Write Pro Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||