La commande WP Get body retourne la partie corps (body) du document 4D Write Pro docWP.
Cet élément peut ensuite être passé aux commandes :
Vous voulez copier le corps d'un document 4D Write Pro dans un autre document 4D Write Pro :
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)