Vous êtes sur le site Web historique de la documentation de 4D. Les documentations sont progressivement déplacées vers developer.4d.com

Accueil

 
4D v20 R7
WP Get body

WP Get body 


 

WP Get body ( docWP ) -> Résultat 
Paramètre Type   Description
docWP  Objet in Document 4D Write Pro
Résultat  Objet in Corps de 4D Write Pro

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 :

 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)



Voir aussi  

WP Text range

 
PROPRIÉTÉS 

Produit : 4D
Thème : 4D Write Pro - Langage
Numéro : 1516

Commande(s) éligible(s) à l'exécution dans un process préemptif

 
PAGE CONTENTS 
 
HISTORIQUE 

Créé : 4D v16 R5

 
UTILISATION DE L'ARTICLE

4D Write Pro ( 4D v20 R7)