LucaMs Expert Licensed User Longtime User Jan 23, 2021 #1 How to get the (text) tag of a B4XImageView when it is in a Panel (B4XView) by using GetAllViewsRecursive?
How to get the (text) tag of a B4XImageView when it is in a Panel (B4XView) by using GetAllViewsRecursive?
Alexander Stolte Expert Licensed User Longtime User Jan 23, 2021 #2 Maybe: B4X: For Each v As B4XView In xpnl_tabs_background.GetAllViewsRecursive Dim tmp_xiv As B4XImageView = v.Tag Log(tmp_xiv.Tag) Next Upvote 0
Maybe: B4X: For Each v As B4XView In xpnl_tabs_background.GetAllViewsRecursive Dim tmp_xiv As B4XImageView = v.Tag Log(tmp_xiv.Tag) Next
LucaMs Expert Licensed User Longtime User Jan 23, 2021 #3 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
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
LucaMs Expert Licensed User Longtime User Jan 23, 2021 #4 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
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.
Alexander Stolte Expert Licensed User Longtime User Jan 23, 2021 #5 LucaMs said: If v.Tag Is B4XImageView Then Click to expand... right, I had forgotten that Upvote 0