ArcPad Scripting Object Model
ToolBars Property
See Also  Send comments on this topic.
Application Object : ToolBars Property

Glossary Item Box

Description

Returns a reference to the global ToolBars object.

Property type

Read-only property

Syntax

Set variable = object.ToolBars

Return Type

ToolBars Object

Remarks

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

See Also

© 2013 All Rights Reserved.