Is this expected behavior for RowTag?

I’d like to know if this is expected behavior with a PopupMenu RowTag or whether I need to file a feedback case.

I’m getting a TypeMismatchException with:

Dim DefaultFiles As Text DefaultFiles = cmbAttachmentLocation.RowTag(0).TextValue

However this works as expected:

Dim DefaultFiles As Text DefaultFiles = cmbAttachmentLocation.RowTag(0).StringValue.ToText

please fill a feedback case. Sounds like a bug.

As a rowtag is a variant, i would say both should work

[quote=186875:@Stefan Welcker]Dim DefaultFiles As Text
DefaultFiles = cmbAttachmentLocation.RowTag(0).TextValue[/quote]

then this should still work as well?

Dim DefaultFiles As Text DefaultFiles = cmbAttachmentLocation.RowTag(0)

of course it should work!

Reported:

<https://xojo.com/issue/39316>