ListBox.InsertRow

From Xojo Documentation

Method

ListBox.InsertRow(RowNumber as Integer, Item as String, [Indent as Integer])

Supported for all project types and targets.

Creates a new row at row (zero-based), moving the existing rows below row down. For multicolumn ListBoxes, text is always assigned to column zero. The optional parameter indent specifies the amount of indentation of the row in hierarchical ListBoxes. The default is zero. It has no effect on non-hierarchical ListBoxes.

Example

The following example inserts a row in the 'ListBox. The code is in a PushButton.

Listbox1.InsertRow(1, "Steven")

See Also

ListBox.RowDepth