Bug? [B4X] Inconsistency: Tag is cleared when layout is loaded into b4xPanel in B4J but not B4A

MrKim

Well-Known Member
Licensed User
Longtime User
The following code works in B4A but the tag property is cleared in B4J (B4i I haven't tested):
B4X:
    RejectPnl = xui.CreatePanel("")
    Root.AddView(RejectPnl, 0, 0, Root.Width, Root.Height)
    RejectPnl.Tag = "RejNote"
    RejectPnl.LoadLayout("RejectNote")
I solved the problem by:
B4X:
    RejectPnl = xui.CreatePanel("")
    Root.AddView(RejectPnl, 0, 0, Root.Width, Root.Height)
    RejectPnl.LoadLayout("RejectNote")
    RejectPnl.Tag = "RejNote"
but it took me quite a while to find the problem because the code was initially written and debugged in B4A.
 
Top