DesktopPopupMenu.LastAddedRowIndex

From Xojo Documentation

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

Read-Only Property (As Integer )
IntegerValue = aDesktopPopupMenu.LastAddedRowIndex

New in 2021r3

Supported for all project types and targets.

The number of the last row added with the AddRow, AddAllRows or AddRowAt method. If no rows have been added, LastAddedRowIndex will be -1.

Example

This example displays the value of the last row added to the popup menu:

Var r As Integer = PopupMenu1.LastAddedRowIndex
System.Beep
MessageBox("The last value added was: " + PopupMenu1.RowValueAt(r))