VSView Reporting Edition Reference > VSReport Control > VSReport Properties > Fields Property |
Returns the current report's Fields collection.
val% = [form!]VSReport.Fields
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
IFieldCollection