ListBox.AddRow
From Real Software Documentation
Appends Item in a new row to the end of the list. Because it is called ParamArray, you can pass several items for a multicolumn ListBox. The items are separated by commas and will be the values for the various columns.
Appends a new row to the end of the list with each element of Item as a separate column.
Use LastIndex to determine the last row. In the case of hierarchical ListBoxes, AddRow appends Item to the subitems of the expanded row when called in the ExpandRow event. The theoretical maximum number of rows is over 2 billion but the actual number will be lower due to memory constraints.
Please note that you get a compile error if you pass a variant to AddRow methods. For using a variant, please convert it first to string or array so the compiler knows which method you want to call.
Examples
Adding the string “October” to a new row in a listbox named Listbox1:
The following line adds a row of months to a ListBox that has four columns:
The following line adds a row of months to a ListBox that has four columns using the array syntax:
See Also
ListBox.AddFolder and ListBox.InsertRow methods
