Function Units Class

EnumerateUnits

"Enumerate Units " Enumerate the units and prefixes which are used within a measurement expression. For example, "ft*lb/s^2" would be translated to "foot*avoirdupois pound/second^2" Synonym-type units are replaced by their definitions, and unit codes are replaced by the name of the unit.

Signature (Visual Basic / VBA)

Public Function EnumerateUnits( _
    ByVal vUnits As Variant _
    ) As Variant

Code Example

    EnumerateUnits("KW*hr")

Return Value

Function returns a string describing the measurements named in the argument. Function returns Null when its argument is Null. returns "kilowatt*hour".

Notes & Version History

Arguments vUnits is a string containing the symbolic portion of a measurement expression. The measurement expression must not contain any numeric portion.