ComponentOne VSView Reporting Edition
Fields Property

Returns the current report's Fields collection.

Syntax

val% = [form!]VSReport.Fields

Remarks

The Fields collection contains all Field objects defined in the current report. 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 the report's Fields collection, the field is not assigned to any sections, and it does not become visible until its Section property is set.  For example, the code below adds a field to the vsrDetail section:

vsr.Fields.Add "New Field", "Hello", 0, 0, 1000, 300

vsr.Fields("New Field").Section = vsrDetail

Data Type

IFieldCollection

 

 


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

Product Support Forum  |  Documentation Feedback