Repository.Unit.GetAllUnits

Returns an array of UnitInfo objects that represent the units of measurement associated with the Repository object.

Syntax
.Unit.GetAllUnits

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