AddType

<< Click to Display Table of Contents >>

 

AddType

AddType([Name], [Caption], [ElectricalPhase], [SortOrder], [Semantics], [Captions])

Adds a Discrete Measurement Type object with the name informed in the Name parameter in the collection of Discrete Measurement Types. If the informed name already exists in that collection or is omitted, it is auto-incremented. This name cannot start with the reserved character of an asterisk (*). Please check the general Name property for more information about the allowed characters on the names of objects. The Caption parameter informs a description for the Discrete Measurement Type. This parameter is optional and, if omitted, configures that description as an empty String. The ElectricalPhase parameter indicates an electrical phase for the Discrete Measurement Type. This parameter is optional and, if omitted, configures that electrical phase with the value -1 (minus one, epNone). The SortOrder parameter informs a viewing order for the Discrete Measurement Type, used to sort Discrete Measurements on lists. This parameter is optional and, if omitted, configures the viewing order with the value 1000. The Semantics and Captions parameters are optional and, if informed, they must be unidimensional arrays with the same size and containing, respectively, meanings and descriptions for Meanings to add to the Discrete Measurement Type.

This method returns a Discrete Measurement Type object if successful.

Was this page useful?