B brianwiz12 Active Member Licensed User Longtime User Feb 15, 2019 #1 Hello, I have attached my project. I have gotten the layout to be like i want. I have even gotten the panels to load exactly how i want them. BUT im running into two issues 1. Each Episode has 10 questions per say. When you click through 3 questions on episode 1(main one that loads) and then go to Episode 2 the counter does not reset. I even made different next buttons for each panel. 2. So im on the main activity. switch to episode 2 works fine.. Switch back to episode 1 and works fine. Then i go back to episode 2 and it does not release the old views. Seems like its overwriting stuff. On a side note im looking to see if there is a way that the messagebox at the end of each episode can just load the next episode questions. That im still looking into but may run into number 1 with that too. Attachments example.zip example.zip 26.5 KB · Views: 330
Hello, I have attached my project. I have gotten the layout to be like i want. I have even gotten the panels to load exactly how i want them. BUT im running into two issues 1. Each Episode has 10 questions per say. When you click through 3 questions on episode 1(main one that loads) and then go to Episode 2 the counter does not reset. I even made different next buttons for each panel. 2. So im on the main activity. switch to episode 2 works fine.. Switch back to episode 1 and works fine. Then i go back to episode 2 and it does not release the old views. Seems like its overwriting stuff. On a side note im looking to see if there is a way that the messagebox at the end of each episode can just load the next episode questions. That im still looking into but may run into number 1 with that too.
B brianwiz12 Active Member Licensed User Longtime User Feb 20, 2019 #2 update. I got question 1 completed. I had to end a counter = 0 code when loading the next sequence. Have not totally figured out a way to solve 2 Upvote 0
update. I got question 1 completed. I had to end a counter = 0 code when loading the next sequence. Have not totally figured out a way to solve 2
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2019 #3 I haven't checked your code, however views will not be removed when you load a layout. You can load the layout to a panel and later call Panel.RemoveView to remove the panel. Or call Panel.RemoveAllViews to remove all the child views. Upvote 0
I haven't checked your code, however views will not be removed when you load a layout. You can load the layout to a panel and later call Panel.RemoveView to remove the panel. Or call Panel.RemoveAllViews to remove all the child views.