PopupMenu.ListCount

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aPopupMenu.ListCount

Supported for all project types and targets.

The number of items in the list.

Example

This example displays the number of items in the list.

MsgBox(Str(FruitPopup.ListCount))