AddSemantic

<< Click to Display Table of Contents >>

 

AddSemantic

AddSemantic([Name], [Caption])

Adds a Semantic object in the collection of Semantics of a Discrete Measurement Type (returned in the Semantics property) with the name informed in the Name parameter. If the informed name already exists in that collection or is omitted, it is auto-incremented. The Caption parameter informs a description for a Semantic. This parameter is optional and, if omitted, configures that description as an empty String. Please check the general Name property for more information about the allowed characters on the names of objects.

This method returns a Semantic object if successful.

 

NOTES

Types of Discrete Measurements created by default (the ones containing an asterisk character in their names) do not accept adding new Semantics.

When adding the first Semantic to a collection of Semantics of a Discrete Measurement Type, a default Conversion (named (default)) is also created automatically and added to the collection of Conversions of that Discrete Measurement Type (returned in the Conversions property).

Was this page useful?