LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically switching a page on the Tab Control

Solved!
Go to solution

Hi,

 

I am using LV8.6 and I have a drop down selector to choose which unit I want to test.  This enables the page the unit controls are on and disables the others.  What I want to do is when the unit is selected the page is enabled (which I have done) and the page to be in view and selected.  Does anyone know how this is done?

 

Thanks

Martin

0 Kudos
Message 1 of 6
(2,929 Views)
Solution
Accepted by topic author Marty_H

Simply change the value of the tab control. Send 3 and it'll show the 3rd page. If you create a constant it works like an Enum and will show the page names as options.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 6
(2,925 Views)


@Yamaeda wrote:

Send 3 and it'll show the 3rd page.


4th page, zero index 😛

_____________________________
- Cheers, Ed
Message 3 of 6
(2,920 Views)

Hi,

 

What an idiot I am!!  I have been trying to do this and it wasn't working due to setting the wrong property node in my code.

Now fixed!

 

Thanks for the sanity check!

0 Kudos
Message 4 of 6
(2,919 Views)

@yenknip wrote:


@Yamaeda wrote:

Send 3 and it'll show the 3rd page.


4th page, zero index 😛


Very good, someone's awake. 😉

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 6
(2,909 Views)

@marty H wrote:

Hi,

 

What an idiot I am!!  I have been trying to do this and it wasn't working due to setting the wrong property node in my code.

Now fixed!

 

Thanks for the sanity check!



Dont use Value property node if you can avoid it, it's slow and often unnecessary. In this case you can use a local variable. (One of the instances where it's ok to use a local variable, since there's really no other option to change the value of an control.)

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 6
(2,905 Views)