Skip to main content
Version: Next

WP New footer

WP New footer ( wpSection ) -> Function result

ParameterTypeDescription
wpSectionObject🡒4D Write Pro section or subsection
Function resultObject🡐4D Write Pro footer

Description

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

If a footer 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 footer for the left pages of a section:

 var $section ;$subsection ;$footer : Object
  //Retrieve the first section
 $section:=WP Get section(wpDoc;1)
  //Retrieve the reference on the left subsection of the first section
 $subsection:=WP Get subsection($section;wk left page)
 
  //If the subsection exists, set the footer
 If($subsection#Null)
    $footer:=WP New footer($subsection)
 End if

See also

WP DELETE FOOTER
WP Get footer
WP New header