Home
Up
Count
Item
Add
Move
MoveUp
MoveDown
Remove
OnBarRecordAdded
OnBarRecordChanged
OnBarRecordRemoved
OnBarRecordsSorted
OnBarRecordMoved
OnGroupAdded
OnGroupChanged
OnGroupRemoved
OnGroupMoved

GroupCollection.Item

Gets a group from the collection.

Syntax

group = barlist.Groups(index)
group = barlist.Groups.Item(index)

Parameters

index

Index of the group.  The index can be a 1-based index or the name of the group

Returns

Object. Returns the specified group or Nothing if the group doesn't exist

Example

This example gets the 4th group of the collection and displays its name if it exists

Dim group as Group
group = barlist.Groups(4)
If group Is Nothing Then
   MsgBox "Group 4 doesn't exist"
Else
   MsgBox "Group 4 is named " + group.Name
End If

 

Copyright © 1999, Washington State Department of Transportation