Aller au contenu principal
Version: Next

WP Get body

WP Get body ( docWP ) -> Résultat

ParamètreTypeDescription
docWPObjet🡒Document 4D Write Pro
RésultatObjet🡐Corps de 4D Write Pro

Description

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 :

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