This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com
Home
The WP Get body command returns the body element of the wpDoc 4D Write Pro document.
This element can be passed to the:
You want to copy the body of a 4D Write Pro document to another 4D Write Pro document:
C_OBJECT($bodySource;$rangeSource;$tempoc;$bodyTarget;$rangeTarget) $bodySource:=WP Get body([TEMPLATES]WPtemplate) $rangeSource:=WP Text range($bodySource;wk start text;wk end text) $tempoc:=WP New($rangeSource) $bodyTarget:=WP Get body([Docs]MyWPDoc) $rangeTarget:=WP Text range($bodyTarget;wk start text;wk end text) WP INSERT DOCUMENT($rangeTarget;$tempoc;wk replace)
WP Text range
Product: 4D Theme: 4D Write Pro Language Number: 1516
Created: 4D v16 R5
4D Write Pro Reference ( 4D v20 R7)