Repository.Unit.GetAllUnits

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

In Synthesis desktop applications, these units are shown in the Manage Units window.

Syntax
object.Unit.GetAllUnits

where object is a variable that represents a Repository object.

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)