The WP Get sections command returns a collection of all sections defined in the targetObj parameter.
In the targetObj parameter, you can pass:
- a range, or
- a 4D Write Pro document
For more information about sections, please refer to the Handling headers, footers, and sections paragraph.
You want to change an attribute for the last section of the 4D Write Pro area:
C_COLLECTION($colSections)
$colSections:=WP Get sections(wpDoc)
WP SET ATTRIBUTES($colSections[$colSections.length-1];wk column count;3)