Repository.Unit.GetAllUnits

Gets the unit of measurement associated with a 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)