4D v19WP Get footer |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19
WP Get footer
|
WP Get footer ( targetObj ) | (wpDoc ; sectionIndex {; sectionSubType} ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
targetObj | Object |
![]() |
4D Write Pro range or section/sub-section element | |||||
wpDoc | Object |
![]() |
4D Write Pro document | |||||
sectionIndex | Longint |
![]() |
Section index | |||||
sectionSubType | Longint |
![]() |
Type of subsection (wk first page, wk left page, or wk right page) | |||||
Function result | Object |
![]() |
4D Write Pro footer | |||||
The WP Get footer command returns the footer associated to the targetObj range or to the specified sectionIndex of the wpDoc document.
Constant | Type | Value |
wk first page | Longint | 1 |
wk left page | Longint | 2 |
wk right page | Longint | 3 |
You want to copy the footer of the first page of a 4D Write Pro document to the footer of all pages of another 4D Write Pro document:
C_OBJECT($footerSource;$rangeSource;$tempoc;$footerTarget;$rangeTarget)
$footerSource:=WP Get footer([TEMPLATES]WPtemplate;1;wk first page) //get the first page footer of section 1
$rangeSource:=WP Text range($footerSource;wk start text;wk end text)
$tempoc:=WP New($rangeSource)
$footerTarget:=WP Get footer([Docs]MyWPDoc;1) //all pages of section 1
$rangeTarget:=WP Text range($footerTarget;wk start text;wk end text)
WP INSERT DOCUMENT($rangeTarget;$tempoc;wk replace)
Using a 4D Write Pro area
WP DELETE FOOTER
WP Get frame
WP Get header
WP New footer
Product: 4D
Theme: 4D Write Pro Language
Number:
1504
Created: 4D v16 R5
Modified: 4D v17 R3
4D Write Pro Reference ( 4D v19)