LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

collect all the child tab's page reference number

Solved!
Go to solution

I would like to search for all tab's inside a tab, giving this condition

 

1. There is one parent tab and uncertain number of child tab

2. Every page of parent tab definitely has one child tab

3. Every page of parent tab has others type of controls

 

My purpose is to collect all the child tab's page reference number 

 

child page.PNG

 It seem like after the class name property, the type reference do not match

 

I also attach the vi 

 

Thank you

0 Kudos
Message 1 of 5
(3,204 Views)
Solution
Accepted by topic author coloredsound

Hi sound,

 

 It seem like after the class name property, the type reference do not match

Yes.

With "CtlsOnPage" property you get "unspecific" references as all possible types of controls are referenced here. After filtering the references you need (which you need to do properly!) you should use "ToMoreSpecificReference" and convert the reference to a tab-type reference!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(3,193 Views)

Hello GerdW

 

what if each tab has their own type reference, what should i use for class target input?

 

tabs.JPG

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

It should be a tab control.  The heirarchy goes Generic->GObject->Control->Page Selector->Tab Control.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 5
(3,129 Views)

Helllo cross,

 

You are right, everything is working now

 

tabs.JPG

tabs2.JPG

 

now i can softcode everyting, kudo given to both of you, thank you very much

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