MobileToolbar.ButtonAt

From Xojo Documentation

Method

MobileToolbar.ButtonAt(index As Integer) As MobileToolbarButton

Supported on Mobile.

Gets the button on the toolbar at the specified index.

Sample Code

Get the first button on the toolbar:

Var button As MobileToolbarButton
button = Toolbar.ButtonAt(0)

Change the Caption of the last button on the toolbar:

Toolbar.ButtonAt(Toolbar.Count - 1).Caption = "New"