This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
WP New header

WP New header 


 

WP New header ( wpSection ) -> Function result 
Parameter Type   Description
wpSection  Object in 4D Write Pro section or subsection
Function result  Object in 4D Write Pro header

The WP New header command creates and returns the header associated to the section or subsection defined by the wpSection parameter.

If a header element is already defined for the section or subsection, an undefined object is returned and an error is generated.

Example  

You want to create a header for the right pages of a section:

 C_OBJECT($section;$subsection;$header)
  //Retrieve the first section
 $section:=WP Get section(wpDoc;1)
  //Retrieve the right subsection of the first section
 $subsection:=WP Get subsection($section;wk right page)
 
  //If the subsection exists, set the header
 If($subsection#Null)
    $header:=WP New header($subsection)
 End if



See also 

WP DELETE HEADER
WP Get header
WP New footer

 
PROPERTIES 

Product: 4D
Theme: 4D Write Pro Language
Number: 1586

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R3

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v20 R7)