[Visual Basic] Public Function ChangeUnit( _ ByVal Unit As EpUnit, _ Optional ByVal ConvertValue As Boolean = VARIANT_TRUE _ ) As Boolean [C#] public bool ChangeUnit( EpUnit Unit, bool ConvertValue ); [C++] public: bool ChangeUnit( EpUnit Unit, bool ConvertValue ); [JScript] public function ChangeUnit( EpUnit Unit, bool ConvertValue ): bool;
if ConvertValue is True and Unit has the same Dimension as the current Unit then ValueInUnit will be converted; in case of unit mismatch ValueInSI is set to 0 (resp. '')
UnitValue Class | EbsOpen Namespace