Command: CreateValueWithUnit
- Updated2024-09-12
- 2 minute(s) read
Command: CreateValueWithUnit
Command: CreateValueWithUnit
Generates a ValueWithUnit object.
Input Parameters
![]() |
Specifies the value of the quantity. |
![]() |
Specifies the unit of the quantity. |
Return Parameters
ReturnValue | The return value is a ValueWithUnit object type. |
Example
The following example converts a specified length from meters to inches.
VBScript | Python |
Dim MyValueUnit Set MyValueUnit = CreateValueWithUnit(0.61,"m") Call MyValueUnit.Convert("in") Call MsgBoxDisp(MyValueUnit.Value)