4D v17

WP Get body

Inicio

 
4D v17
WP Get body

WP Get body 


 

WP Get body ( wpDoc ) -> Resultado 
Parámetro Tipo   Descripción
wpDoc  Objeto in Documento 4D Write Pro
Resultado  Objeto in Referencia del cuerpo 4D Write Pro

El comando WP Get body command returns a reference to the body of the wpDoc 4D Write Pro document.

Esta referencia se puede pasar a:

Ejemplo  

Usted desea copiar la parte del cuerpo de un documento 4D Write Pro a otro documento 4D Write Pro:

 C_OBJECT($bodySource;$rangeSource;$tempoc;$bodyTarget;$rangeTarget)
 
 $bodySource:=WP Get body([TEMPLATES]WPtemplate)
 $rangeSource:=WP Create range($bodySource;wk start text;wk end text)
 $tempoc:=WP New($rangeSource)
 
 $bodyTarget:=WP Get body([Docs]MyWPDoc)
 $rangeTarget:=WP Create range($bodyTarget;wk start text;wk end text)
 
 WP INSERT DOCUMENT($rangeTarget;$tempoc;wk replace)



Ver también 

WP Create range

 
PROPIEDADES 

Producto: 4D
Tema: Lenguaje 4D Write Pro
Número 1516

This command can be run in preemptive processes

 
HISTORIA 

Creado por: 4D v16 R5

 
ARTICLE USAGE

Referencia 4D Write Pro ( 4D v17)