LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tab control: how to retrieve text of currently selected tab

In a Ring Control I simply create a property node to bring up the Strings[] property, and use the ring control as an index to select the correct string.

 

I can't seem to find anything similar in the Tab Control.

 

So .. how does one retreive the text of a currently selected tab in a Tab Control?

 

Thanks!

 

 

0 Kudos
Message 1 of 5
(3,025 Views)

Actually, with a ring control you don't even need to do all that. You can just use the RingText.Text property.

 

For the tab control: A tab control is an enum, so you can just use the Format Into String to get the text of the page: 

Message Edited by smercurio_fc on 05-21-2009 03:54 PM
0 Kudos
Message 2 of 5
(3,021 Views)

You could just format it as a string as follows:

 

 

(EDIT: I see smercurio was faster. Somebody distracted me while I was editing..... ;))

Message Edited by altenbach on 05-21-2009 02:00 PM
0 Kudos
Message 3 of 5
(3,017 Views)

 

THANKYOU!

 

 

0 Kudos
Message 4 of 5
(3,011 Views)

altenbach wrote:

 

(EDIT: I see smercurio was faster. Somebody distracted me while I was editing..... ;))


Yeah, it was me, telepathically. Smiley Very Happy

0 Kudos
Message 5 of 5
(3,009 Views)