Name Property (AToolBarButton)

Returns or sets the unique string of an object in a buttons collection.

Syntax

Object.Name [ = sName ]

The Name property syntax has the following parts:

 

Name

Type

Description

Object

AToolBarButton

AToolBarButton class

sName

BString

The unique string of an object in a buttons collection

Comments

If you expect the Index property to change dynamically, it is better to refer to objects in a collection using the Name property.

Example

The following statement inserts a new AToolBarButton object before the specified button:

tbr1.InsertButton(tbrb.Name)

Applies to

AToolBarButton

See Also

MenuCommand, MenuDropDown, Prompt