ComponentOne VSView Reporting Edition
Fields Property (Section)

Returns a collection of all the Fields in this Section.

Syntax

section.Fields[ = IFieldCollection ]

Remarks

The Fields collection contains all Fields objects defined in the current section. The collection has the following methods and properties:

 

Item

Returns a Field object, indexed by position or by name.

Count

Returns a count of all Field objects in the collection.

Add

Adds a Field object to the collection (and to the report).

Remove

Removes a Field object from the collection (and from the report).

 

When you add a field to a section's Fields collection, the field is automatically assigned to the section that owns the collection. For example, the code below adds a field to the vsrDetail section:

vsr.Sections(vsrDetail).Fields.Add _

         "New Field", "Hello", 0, 0, 1000, 300

Data Type

IFieldCollection

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback