Programming with Reflection
GetNumButtons method
Syntax NumButtons = object.GetNumButtons
Returns the number of toolbar buttons.
NumButtons Return type: Integer
The number of buttons on the toolbar.
Note: Because this method returns a value but does not take any arguments, some OLE clients return an error when you try to use this method. If this happens, try appending parentheses to the end of the command. For example:
howMany = myobject.GetNumButtons( )