Y ykucuk Well-Known Member Licensed User Longtime User Apr 12, 2024 #1 Hello, Is there a way to close all open B4XPages and back to B4XPages.MainPage? I'm looking for a method to reset the navigation stack or similar functionality. Any suggestions on how to implement this would be greatly appreciated. Thank you!
Hello, Is there a way to close all open B4XPages and back to B4XPages.MainPage? I'm looking for a method to reset the navigation stack or similar functionality. Any suggestions on how to implement this would be greatly appreciated. Thank you!
mangojack Expert Licensed User Longtime User Apr 13, 2024 #2 B4X: B4XPages.ShowPageAndRemovePreviousPages("MainPage") as stated by Erel in the B4XPages Tutorial (post #3) ... This causes the previous pages on the stack to be removed. Click to expand... Upvote 2
B4X: B4XPages.ShowPageAndRemovePreviousPages("MainPage") as stated by Erel in the B4XPages Tutorial (post #3) ... This causes the previous pages on the stack to be removed. Click to expand...
LucaMs Expert Licensed User Longtime User Apr 13, 2024 #3 mangojack said: B4X: B4XPages.ShowPageAndRemovePreviousPages("MainPage") as stated by Erel in the B4XPages Tutorial (post #3) ... Click to expand... Yes, but that way you would only remove the ID of the last page opened, the one at the top of the stack. The solution should be: B4X: B4XPages.GetManager.mStackOfPageIds.AsList.Clear Upvote 0
mangojack said: B4X: B4XPages.ShowPageAndRemovePreviousPages("MainPage") as stated by Erel in the B4XPages Tutorial (post #3) ... Click to expand... Yes, but that way you would only remove the ID of the last page opened, the one at the top of the stack. The solution should be: B4X: B4XPages.GetManager.mStackOfPageIds.AsList.Clear
S Spavlyuk Active Member Licensed User Apr 15, 2024 #4 LucaMs said: The solution should be: B4X: B4XPages.GetManager.mStackOfPageIds.AsList.Clear Click to expand... Did Erel suggest that somewhere? ShowPageAndRemovePreviousPages already calls mStackOfPageIds.Clear and does many other things... Upvote 0
LucaMs said: The solution should be: B4X: B4XPages.GetManager.mStackOfPageIds.AsList.Clear Click to expand... Did Erel suggest that somewhere? ShowPageAndRemovePreviousPages already calls mStackOfPageIds.Clear and does many other things...
Erel B4X founder Staff member Licensed User Longtime User Apr 15, 2024 #5 ShowPageAndRemovePreviousPages is the correct answer. Upvote 0
LucaMs Expert Licensed User Longtime User Apr 15, 2024 #6 Erel said: ShowPageAndRemovePreviousPages is the correct answer. Click to expand... Yes, I "thought" it was: ShowPageAndRemovePreviousPage -s Upvote 0
Erel said: ShowPageAndRemovePreviousPages is the correct answer. Click to expand... Yes, I "thought" it was: ShowPageAndRemovePreviousPage -s