PDFPopupMenu.RowTagAt
From Xojo Documentation
Method
PDFPopupMenu.RowTagAt(index As Integer) As Variant
New in 2021r3
Supported for all project types and targets.
New in 2021r3
Supported for all project types and targets.
A "hidden" identifier associated with the item identified by the row parameter.
Notes
If you want to compare the value of row tag to another value, you should first convert the Variant to it actual data type.
Sample Code
This example populates the RowTagAt identifier with a sequence number.
Var nItems As Integer
nItems = PopupMenu1.RowCount - 1
For i As Integer = 0 To nItems
PopupMenu1.RowTagAt(i) = i
Next
nItems = PopupMenu1.RowCount - 1
For i As Integer = 0 To nItems
PopupMenu1.RowTagAt(i) = i
Next
Since a row tag is a Variant, you must first convert it to an Integer if you want to compare it to another Integer. Do this with an assignment statement such as: