Returns a reference to the global ToolBars object.
Read-only property
Set variable = object.ToolBars |
ToolBars Object
The ToolBars object is exposed globally. That means you can directly access the properties and methods of the ToolBars object from any routine without first obtaining a reference to that object. For example, the following VBScript code displays the number of toolbars loaded in ArcPad in a message box:
Sub DisplayNumToolBars
Dim objAPToolBars
Set objAPToolBars = Application.ToolBars
MsgBox objAPToolBars.Count
End Sub
Since the ToolBars object is global, the above example can be shortened to the following one line example:
Sub DisplayNumToolBars
MsgBox ToolBars.Count
End Sub
Sub DisplayNumToolBars
Dim objAPToolBars
Set objAPToolBars = Application.ToolBars
MsgBox objAPToolBars.Count
End Sub
Since the ToolBars object is global, the above example can be shortened to the following one line example:
Sub DisplayNumToolBars
MsgBox ToolBars.Count
End Sub