DesktopPopupMenu.RowCount
From Xojo Documentation
Read-Only Property (As Integer )
The number of rows in the popup menu.
Example
This example displays the number of rows in the popup menu.
MessageBox(FruitPopup.RowCount.ToString)
The number of rows in the popup menu.
This example displays the number of rows in the popup menu.