DesktopPopupMenu.RemoveAllRows

From Xojo Documentation

Method

DesktopPopupMenu.RemoveAllRows()

New in 2021r3

Supported for all project types and targets.

Removes all rows in the list.

Example

The following example removes all the existing rows prior to adding new rows using AddAllRows.

Var names() As String
names.Add("Abbott")
names.Add("Costello")
names.Add("Frankenstein")

Me.RemoveAllRows
Me.AddAllRows(names)