Repository.Unit.GetAllUnits

Gets a list of all predefined units in the current repository. In Synthesis desktop applications, these units are shown in the Manage Units window. 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)