DIAdem Help

Content Type
Programming Language
Current manual

Property: Value for ValueWithUnit

Property: Value for ValueWithUnit

Specifies the value of a value-unit object.

Object.Value
ObjectValueWithUnit
Object with this property
Object.ValueVariant with read and write access
Specifies the value

The following example generates a value-unit object, converts the specified length from meters to inches, and then displays the new value:

VBScriptPython

 

Dim MyValueUnit
Set MyValueUnit = CreateValueWithUnit(0.61, "m")
Call MyValueUnit.Convert("in")
Call MsgBoxDisp(MyValueUnit.Value)
Was this information helpful?