Aller au contenu principal
Version : 20 R10

WP Get body

WP Get body* ( docWP ) -> Résultat

ParamètreTypeDescription
docWPObjectDocument 4D Write Pro
RésultatObjectCorps de 4D Write Pro

Description

a commande WP Get body retourne la partie corps (body) du document 4D Write Pro docWP.

Cet élément peut ensuite être passé aux commandes :

Exemple

Vous voulez copier le corps d'un document 4D Write Pro dans un autre document 4D Write Pro :

 var $bodySource;$rangeSource;$tempoc;$bodyTarget;$rangeTarget : Object
 
 $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)

Voir aussi

WP Text range