DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Command: CreateValueWithUnit

Display all  Hide all

Command: CreateValueWithUnit

Generates a ValueWithUnit object.

Set ReturnValue = CreateValueWithUnit(oValue, UnitSymbol)

Input Parameters

oValue Specifies the value of the quantity.
UnitSymbol 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.

VBScriptPython

 

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