Returns or sets the unique string of an object in a buttons collection.
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 |
If you expect the Index property to change dynamically, it is better to refer to objects in a collection using the Name property.
The following statement inserts a new AToolBarButton object before the specified button:
tbr1.InsertButton(tbrb.Name)