The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Tab Control - Accessing Pages

SercoSteveB
Active Participant

Tab Control - Accessing Pages 17_08_2016.PNG

What are the contents of Array Out following execution of the VI shown?

a) <empty array>

b) {Steve}

c) {Steve,Likes}

d) {Steve,Likes,LabVIEW}

Comments
crossrulz
Knight of NI

A

Current value of the tab control is 0 since the first page is selected.


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
hemanths
Member

A, If second page is selected Ans is Steve and if third page is selected Ans is Steve Likes

nik35324
Member

A

LordNobady
Member

A, the wired tap controll is sneaky.


Learning LabVIEW since January 2013
SercoSteveB
Active Participant

Agreed sneaky , nobody else even blinked though.  I shall have to up my game.

FireFly
Member

Answer is no definition. We can have hidden pages here. So, we don't know "Tab Control" value.

SercoSteveB
Active Participant

Hi FireFly.  A really good point and something that people should be aware of.

A running caveat I have with The Daily CLAD, although I haven't mentioned it for a while, is that if I deviate from the default state in a The Daily CLAD question I will always include those deviations in the question.  This is for a number of reasons but primarily because it becomes impossible to write succinct questions if I need to clarify and explain all of the vagaries and connotations associated with the specifics of the question.

In the case of a Tab Control the default state is to have no hidden pages.  Hiding them is something extra I would need to do either manually or programmatically to move away from the default, so I would always include those manual or programmatic steps in the question.

Steve

MrStevenUND
Member

First tab is index 0.  therefore A.

SercoSteveB
Active Participant

Answer: A. Nice one crossrulz, hemanths, nik35324, LordNobady & MrStevenUND

This one is masquerading as a question about Tab Controls, whereas it is more a question about the flow of data.