CommandValue

<< Click to Display Table of Contents >>

 

CommandValue

Indexed Object This property returns a Command Type Conversion Values (PowerCommandTypeConversionValues) object relative to the Semantic specified in the collection of Command Type Semantics (PowerCommandTypeSemantics). The way to use this property is similar to the Item method, by passing an index (starting at one) or a Semantic name to have access to the properties of the returned object. For example, to access the value of the cancel action of the first Semantic of the default Conversion of the Command Type *BreakerPosition, use the next code.

Set pc = Application.GetObject("PowerConfiguration")
Set cv = pc.CommandTypes.Item("*BreakerPosition").Conversions
Set ca = cv.Item("(default)").CommandValue(1).CancelValue

Was this page useful?