ArcPad Scripting Object Model
Name Property
See Also  Example  Send comments on this topic.
ToolBar Collection : Name Property

Glossary Item Box

Description

Returns the name of the toolbar.

Property type

Read-only property

Syntax

variable = object.Name

Return Type

String

Example

IsToolBarPresent returns True if the specified toolbar is present; False if not. HideToolBar hides the specified toolbar if it is present.
ToolBar Example (VBScript)Copy Code
Function IsToolBarPresent (strTBName)
  Dim blnExists
  blnExists = False
  For each T in Application.Toolbars
    If T.Name = strTBName Then
      blnExists = True
      Exit For
    End If
  Next
  IsToolBarPresent = blnExists
End Function

Sub HideToolBar (strTBName)
  If IsToolBarPresent (strTBName) Then
    Application.ToolBars(strTBName).Visible = False
  End If
End Sub

See Also

© 2013 All Rights Reserved.