VSView Reporting Edition Reference > Field Object > Field Properties > Section Property |
Returns or sets the Section to which the Field belongs.
field.Section[ = SectionTypeSettings ]
You can read this property to determine which section the field belongs to, or set the property to move the field to a new section.
For example, the code below moves all fields on the page header section to the page footer section:
Dim i%, iSec%
For i = 0 to vsr.Fields.Count - 1
iSec = vsr.Fields(i).Section
If iSec = vsrPageHeader Then
vsr.Fields(i).Section = vsrPageFooter
End If
Next
SectionTypeSettings (Enumeration)