<< Click to Display Table of Contents >>
Fields |
This property returns an object that represents a collection of Fields created in a Historic. This is a read-only property. For more information about the collection returned by this property, please check topic Fields.
NOTES |
•In applications created before Elipse Power version 5.0, this property is a standard collection, which supports the Item method to access the available fields. Starting with version 5.0, this property also returns a native object of Elipse Power, and therefore the way to access Fields is different for both ways. The next example shows the correct way to use this property. •Applications saved in version 5.0 convert Historic objects from the collection format to a native object and CANNOT be opened in previous versions anymore. |
To access the collection of Historic Fields as a collection as well as a native object, use the syntax described in the next example.
'This application contains an object called Hist1
'that contains a Field called Field1.
'To access this Field from a collection,
'use the following syntax:
Set collectionField = Application.GetObject("Hist1").Fields.Item("Field1")
'To access the same Field as a native object,
'use the following syntax:
Set nativeField = Application.GetObject("Hist1.Fields.Field1")