Each of the objects within the collection.
object.Item(aIndex)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISCollection interface |
|
aIndex |
In, Required | int |
The index of the object within the
collection |
object
Display each of the objects within the collection.
Dim aDiseases, aDisease
Dim aMessage
Dim i
Set aDiseases = Profile.LoadDiseaseCodes 'Collection of ISDisease
aMessage = "Diseases Count: " & aDiseases.Count
for i = 0 to aDiseases.Count - 1
set aDisease = aDiseases.Item(i)
aMessage = aMessage & vbNewLine &_
aDisease.Description & " (" & aDisease.Code & ")"
next
Profile.MsgBox(aMessage)