Repository.Unit.GetAllUnits

Gets a list of all the predefined units of measurement in the current repository. Returns a UnitInfo object array that contains the unit names, ID numbers, abbreviations and multipliers.

Syntax
.Unit.GetAllUnits

Example
VBA|VB.NET MyRepository Repository ListOfUnits UnitInfo ListOfUnits = MyRepository.Unit.GetAllUnits Dim UnitName String Dim UnitID Integer UnitName = ListofUnits(0).Name UnitID = ListofUnits(0).ID MsgBox ( & UnitName &  & UnitID)