ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine if Tab is active

Solved!
Go to solution

If you have a Tab Control that has 3 tabs for example, I am wondering how do you go about determining if the 3rd tab is selected?  For example, I would like to use a True/False boolean output depending on if the 3rd tab is selected...if the tab is selected the boolean reads true, if not then false.  I imagine that this has to do with creating a tab control property node, but I am not sure which one would apply to this situation.  Any help would be appreciated.

0 Kudos
Message 1 of 4
(6,926 Views)
Solution
Accepted by topic author MCHammer

A tab page has a terminal on the block diagram that can be read and checked to see if a particular tab is selected. See the code below. This is the easiest way to do what you would like to do.

 

Tab Page Selected.png

 

Rob

Message 2 of 4
(6,923 Views)

hmmmm...

look at the tab controls value.  if it equals 3 then tab 3 is active.   (I can't resist)

 

"Can't touch this!"


"Should be" isn't "Is" -Jay
Message 3 of 4
(6,921 Views)

Exactly what I was looking for. Thanks a bunch!

0 Kudos
Message 4 of 4
(6,917 Views)