Android Question [Solved] How to get the (text) tag of a B4XImageView...

LucaMs

Expert
Licensed User
Longtime User
How to get the (text) tag of a B4XImageView when it is in a Panel (B4XView) by using GetAllViewsRecursive?
 

LucaMs

Expert
Licensed User
Longtime User
Found 2 minues ago:

B4X:
    For Each v As B4XView In Pane1.GetAllViewsRecursive
        If v.Tag Is B4XImageView Then
            Dim xiv As B4XImageView = v.Tag
            If xiv.Tag = "B4XImageView1" Then
                Log("found")
            End If
        End If
    Next

THANK YOU ANYWAY, Alexander :)
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
To explain what was my problem (my memory, as always):

I remembered (badly) that the type was stored in the tag and not the object itself.
 
Upvote 0
Top