iOSToolbar.Value

From Xojo Documentation

Method

iOSToolbar.Value(index As Integer) As iOSToolButton

Supported on Mobile(iOS).

Gets the button at the specified index (0-based) on the toolbar.


Method

iOSToolbar.Value(index As Integer, Assigns newValue As iOSToolButton)

Supported on Mobile(iOS).

Sets the button at the specified index (0-based) on the toolbar.

Sample Code

Get the first button on the toolbar:

Var button As iOSToolButton
button = Toolbar.Value(0)

Change the Caption of the last button on the toolbar:

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