PopupMenu.RemoveAllRows

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

PopupMenu.RemoveAllRows()

New in 2019r2

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)