Returns the specified applet object.
Set variable = object.Item ( Index ) |
- Index
- Required. A Variant that specifies the name or index of the toolitem.
Index is a variant specifying the toolbar to reference. It can be either the index or the name of the toolbar. For example, if your ArcPad application contains a toolbar named "MyToolBar" that has an index of 2, the following two lines of code will yield the same result:
Set theToolBar = Application.ToolBars.Item(2)
Set theToolBar = Application.ToolBars.Item("MyToolBar")
The Item method is the default method for the ToolBars collection. Therefore, the following two lines of code will yield the same result:
Set theToolBar = Application.ToolBars.Item("MyToolBar")
Set theToolBar = Application.ToolBars("MyToolBar")
Set theToolBar = Application.ToolBars.Item(2)
Set theToolBar = Application.ToolBars.Item("MyToolBar")
The Item method is the default method for the ToolBars collection. Therefore, the following two lines of code will yield the same result:
Set theToolBar = Application.ToolBars.Item("MyToolBar")
Set theToolBar = Application.ToolBars("MyToolBar")