Skip to main content
Version: 20 R7 BETA

WP DELETE HEADER

WP DELETE HEADER ( wpSection )

ParameterTypeDescription
wpSectionObject4D Write Pro section or subsection

Description

The WP DELETE HEADER command deletes the header element associated to the section or subsection defined by the wpSection parameter.

If no header element exists for the section or subsection, the command does nothing.

Example

You want to delete the header of the right pages of a section:

 var $section;$subsection;$header : Object
  //Retrieve the reference on the first section
 $section:=WP Get section(wpDoc;1)
  //Retrieve the reference on right subsection of the first section
 $subsection:=WP Get subsection($section;wk right page)
 
  //Remove the header
 WP DELETE HEADER($subsection)

See also

WP Get header
WP New header