ibra939 Active Member Licensed User Longtime User Sep 16, 2023 #1 i have create 2 layout when i load first 1 i do button to load second layout but still not working code: ''first Private Sub B4XPage_Created (Root1 As B4XView) Root = Root1 Root.LoadLayout("test") End Sub ''Second Private Sub UpdateAdsSt Root = Root1 Root.LoadLayout("Layout1") end sub
i have create 2 layout when i load first 1 i do button to load second layout but still not working code: ''first Private Sub B4XPage_Created (Root1 As B4XView) Root = Root1 Root.LoadLayout("test") End Sub ''Second Private Sub UpdateAdsSt Root = Root1 Root.LoadLayout("Layout1") end sub
LucaMs Expert Licensed User Longtime User Sep 16, 2023 #2 B4X: Copy ''Second Private Sub UpdateAdsSt ''''''''''Root = Root1 Root.RemoveAllViews Root.LoadLayout("Layout1") end sub Upvote 1
B4X: Copy ''Second Private Sub UpdateAdsSt ''''''''''Root = Root1 Root.RemoveAllViews Root.LoadLayout("Layout1") end sub
ibra939 Active Member Licensed User Longtime User Sep 16, 2023 #3 Thanks so much work as well Upvote 0