Repository.Unit.GetAllUnits

Gets the units of measurement associated with Repository object. Returns a UnitInfo object that represents the unit of measurement.

Syntax
.Unit.GetAllUnits

Example
VBA|VB.NET MyRepository Repository ListOfUnits UnitInfo ListOfUnits = MyRepository.Unit.GetAllUnits NumberofElements Integer NumberofElements = UBound(ListofUnits) - LBound(ListofUnits) + 1 MsgBox (NumberofElements)