PopupMenu.AddAllRows
From Xojo Documentation
Method
Method
PopupMenu.AddAllRows(paramArray items As String)
New in 2019r2
Supported for all project types and targets.
New in 2019r2
Supported for all project types and targets.
Appends the elements of the array to the items in the pop-up menu.
The parameter is an array of Strings. This is equivalent to calling AddRow repeatedly, once for each element of the array.
Notes
You can add a "-" on macOS (instead of calling PopupMenu.AddSeparator) to add a separator. Windows and Linux do not support separators within PopupMenus, so this simply adds a row with the text "-" that can be selectable by the user.
Example
The following example adds two items to the menu. It is equivalent to the example for AddRow that calls AddRow repeatedly.
Me.AddAllRows("Banana", "Orange")