Guys
I have been considering the most efficient method of switching from one panel to the next in an app that comprises of a single "layout" and many panels. Each panel has its own tag ID and only one panel can be visible at any time. The "next" and "back" buttons are located on the layout.
The logic appears to be:
Loop through the panels to get the ID of the current visible panel and store its ID
Loop through the panels again
If the panel ID is the same as the stored ID + 1 then make that panel visible
Else make the panel invisible
Is there a better way?
Thanks
I have been considering the most efficient method of switching from one panel to the next in an app that comprises of a single "layout" and many panels. Each panel has its own tag ID and only one panel can be visible at any time. The "next" and "back" buttons are located on the layout.
The logic appears to be:
Loop through the panels to get the ID of the current visible panel and store its ID
Loop through the panels again
If the panel ID is the same as the stored ID + 1 then make that panel visible
Else make the panel invisible
Is there a better way?
Thanks