Here is a picture of what I've got to try and do tab selection.
Came to me that for 2 of the 4 options I don't need to set the tab since the default is what it should be.
See the error?
The larger red circle is where I'm finding the tab control page. the smaller is where I'm trying to differentiate between which page it needs to open...if subvi3 is pressed it opens the same file as subvi1...but a different tab.
Is "page 3" the label of the entire tab control (not the name of one of the tabs)? You should put your code in the smaller red circle inside the event case. This way the tab value is sent only when the show/hide button is clicked. The way you have it, the tab values are being sent each loop iteration. This wastes time and CPU resources. You only need to send the value when showing the subvi.
Don't use the page name. Use the label of the entire tab control. Point to the tab control border, right click and select Visible Items - Label. By default it is "Tab Control". Use this instead of "page 3".
This is the updated code, both were moved into the case, each one into the case that it relates to - so case for 1, 3 (same subvi different tabs), and case for 2,4 has the other....
smaller circle shows tab title, not tab control label, just the individual tab.
In the little red circle where you have a string constant "page 3", change that to "Tab Control", that is if the label of your tab control is "Tab Control".
You can upload the vi by using the same method as attaching the GIF file. Just click the Browse button and select your vi. If you have more than one, like subvi's, zip them into a zip file and upload that one.