WebPopupMenu.RowTag

From Xojo Documentation

Method

WebPopupMenu.RowTag(Row As Integer) As Variant

New in 2010r5

Supported for all project types and targets.

Gets and sets the RowTag for each row. Row is zero-based.

Notes

The RowTag is anything you want to associate with a specific row. Since it is a variant, you can assign any value including object instances.

Examples

To set the tag:

Me.RowTag(0) = "MyTag_0"

To get the tag (assuming the value of Row has been set):

Label1.Text = Me.RowTag(0)

To set the tag to a specific file:

ImagePopup.DeleteAllRows

// Get Image 1
Var f As New FolderItem("image1.png")
ImagePopup.AddRow(f.Name)
ImagePopup.RowTag(ImagePopup.ListCount - 1) = f

// Get Image 2
f = New FolderItem("image2.png")
ImagePopup.AddRow(f.Name)
ImagePopup.RowTag(ImagePopup.ListCount - 1) = f