DIAdem Help

Command: ValueUnitConvert

  • Updated2024-09-12
  • 2 minute(s) read

Display all  Hide all

Command: ValueUnitConvert

Converts a numeric value from one unit to a different unit.

ReturnValue = ValueUnitConvert(ValueUnit, SourceUnit, TargetUnit)

Input Parameters

ValueUnit Specifies the numeric value of which DIAdem converts the unit.
SourceUnit Specifies the symbol of the source unit.
TargetUnit Specifies the symbol of the target unit.

Return Parameters

ReturnValue The return value is a Floating-point number variable type. Receives the value in the converted unit.

Example

The following example converts one meter into inches and displays the result:

VBScriptPython

 

Call MsgBoxDisp (ValueUnitConvert(1,"m","in"))

Related Topics

Command: ChnConvertUnit | Command: ChnConvertUnitToUnitSet | Command: ChnConvertWaveformXUnit | Command: ChnResultUnitGet | Command: ResultUnitGet