From Xojo Documentation

Revision as of 13:44, 17 June 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.


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

Listbox1.InsertRow(1, "Steven")

See Also