Wish [B4X] BBLabel - add tag property to get the view per code

Alexander Stolte

Expert
Licensed User
Longtime User
@Erel can you please add the tag property to the BBLabel, so i can access the BBLabel in a listview?
otherwise I have to do this with every update...
 

Alexander Stolte

Expert
Licensed User
Longtime User
There is already a Tag property...
yes that's true, but I mean this:
B4X:
For Each v As B4XView In xpnl_tabs_background.GetAllViewsRecursive
    Dim tmp_bblabel As BBLabel= v.Tag
    Log(tmp_bblabel .Tag)
Next
on newer libs. this is standard:
B4X:
Public Sub DesignerCreateView (Base As Object, lbl As Label, Props As Map)
 mBase = Base
Tag = mBase.Tag '<-- store the designer set tag value
mBase.Tag = Me '<-- set the class reference discussed above
 
Top