LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable and disable elements in a Enum control

Solved!
Go to solution
I have two  enum control for a value change event in one enum control i want to hide or diasable some elements in other enum control .
0 Kudos
Message 1 of 11
(8,441 Views)

You use the DisabledItems[] property. The input is an array and you pass it the index of the elements you want disabled.

Message 2 of 11
(8,437 Views)

maybe you can use the disabled Items[] property

 

dennis beat me to it.....

Message Edited by Harold Timmis on 08-25-2009 03:20 PM
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 3 of 11
(8,436 Views)

how to enable for disabling i am passing array with indexes i want to disable for enable what should i do.

0 Kudos
Message 4 of 11
(8,421 Views)
To enable, you pass an empty array.
0 Kudos
Message 5 of 11
(8,414 Views)
Solution
Accepted by topic author srinivas
Thank you i got it.
0 Kudos
Message 6 of 11
(8,406 Views)
Then please mark Dennis' reply as the solution to your question rather than your own thank you message.  You can unmark your message as the solution by going to the options menu to the upper right of your reply.
0 Kudos
Message 7 of 11
(8,385 Views)

Dennis, thanks for your answer.

Message 8 of 11
(6,720 Views)

Suppose that enum control is actually inside in an array....

Could I, for example, disable the 2nd enum element of the 1st array elements, the 5th enum element of the 2nd array element, etc.?

 

My gut feeling is no, because there's no way to access the individual array elements with property nodes.... Or is there?

0 Kudos
Message 9 of 11
(278 Views)

@DBLV wrote:

My gut feeling is no, because there's no way to access the individual array elements with property nodes.... Or is there?


 

No, there isn't. All elements of an array share all their properties. Array elements can only differ in value.

0 Kudos
Message 10 of 11
(261 Views)