kisoft Well-Known Member Licensed User Longtime User Oct 12, 2019 #1 In the application I use many code modules (equivalent to android Activity). W I know that in ios it works completely different, on a hierarchy basis. How can I refresh? In androids, I do it like this. Code: Copy Activity.Finish StartActivity(Me)
In the application I use many code modules (equivalent to android Activity). W I know that in ios it works completely different, on a hierarchy basis. How can I refresh? In androids, I do it like this. Code: Copy Activity.Finish StartActivity(Me)
Brandsum Well-Known Member Licensed User Oct 13, 2019 #2 Do you want to redraw a single view or the complete page? Upvote 0
hatzisn Expert Licensed User Longtime User Oct 13, 2019 #3 kisoft said: In the application I use many code modules (equivalent to android Activity). W I know that in ios it works completely different, on a hierarchy basis. How can I refresh? In androids, I do it like this. Code: Copy Activity.Finish StartActivity(Me) Click to expand... See the localizator example for iOS. Upvote 0
kisoft said: In the application I use many code modules (equivalent to android Activity). W I know that in ios it works completely different, on a hierarchy basis. How can I refresh? In androids, I do it like this. Code: Copy Activity.Finish StartActivity(Me) Click to expand... See the localizator example for iOS.
kisoft Well-Known Member Licensed User Longtime User Oct 13, 2019 #4 HI or did you mean something like that? Code: Copy Private Sub Application_Start (Nav As NavigationController) NavControl = Nav Page1.Initialize("Page1") Page1.Title = "Page 1" ResetLayout NavControl.ShowPage(Page1) End Sub Private Sub ResetLayout Page1.RootPanel.RemoveAllViews Page1.RootPanel.LoadLayout("1") End Sub Sub button1_Click ' reset ResetLayout End Sub I'd also like to reset all the variables from the Sub Process_Globals Upvote 0
HI or did you mean something like that? Code: Copy Private Sub Application_Start (Nav As NavigationController) NavControl = Nav Page1.Initialize("Page1") Page1.Title = "Page 1" ResetLayout NavControl.ShowPage(Page1) End Sub Private Sub ResetLayout Page1.RootPanel.RemoveAllViews Page1.RootPanel.LoadLayout("1") End Sub Sub button1_Click ' reset ResetLayout End Sub I'd also like to reset all the variables from the Sub Process_Globals
Erel B4X founder Staff member Licensed User Longtime User Oct 14, 2019 #5 You cannot reset the process global variables (this is also true in B4A). You should instead create a sub that is called when the app starts and also when you want to reset the state, which sets the state as you want. Upvote 0
You cannot reset the process global variables (this is also true in B4A). You should instead create a sub that is called when the app starts and also when you want to reset the state, which sets the state as you want.