Property: Value for ValueWithUnit
- Updated2024-09-12
- 1 minute(s) read
Value-Unit Object > Properties > Property: Value for ValueWithUnit
Property: Value for ValueWithUnit
Specifies the value of a value-unit object.
Object.Value
Object | ValueWithUnit Object with this property |
Object.Value | Variant 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:
VBScript | Python |
Dim MyValueUnit Set MyValueUnit = CreateValueWithUnit(0.61, "m") Call MyValueUnit.Convert("in") Call MsgBoxDisp(MyValueUnit.Value)