CommandBarButtons.Count

Syntax:

Count()

Returned value:

Type: Number.

Description:

Obtains the number of buttons on a command bar.

Availability:

Thick client.

Example:

CP = Controls.CommandBar1;
Message("Total of buttons " + CP.Buttons.Count());


    

1C:Enterprise Developer's Community