03-22-2022 11:47 AM
The Disabled Items[] property of an Enum strict typedef doesn't propagate to a constant when the constant is created.
And I can't find a way to programmatically disable items in an Enum constant.
Is it possible?
Solved! Go to Solution.
03-22-2022 12:09 PM
@paul_cardinale wrote:
The Disabled Items[] property of an Enum strict typedef doesn't propagate to a constant when the constant is created.
And I can't find a way to programmatically disable items in an Enum constant.
Is it possible?
I'm curious what the application would be, because I can't think of a reason why you would need to disable something on a BD constant.
03-22-2022 04:16 PM
@billko wrote:
@paul_cardinale wrote:
The Disabled Items[] property of an Enum strict typedef doesn't propagate to a constant when the constant is created.
And I can't find a way to programmatically disable items in an Enum constant.
Is it possible?
I'm curious what the application would be, because I can't think of a reason why you would need to disable something on a BD constant.
There's a hint in the picture. The typedef has "<Select>" as its 1st value; and that's never a legit value, not even on the BD. Note also that you can manually disable items in an enum constant.
03-22-2022 04:44 PM
@paul_cardinale wrote:
Note also that you can manually disable items in an enum constant.
Well, I learned something new today. (I fear I might learn this in the future again 😋 )
03-22-2022 04:48 PM
Occasionally you can trick LabVIEW into applying front panel properties to their corresponding block diagram objects with the Type Cast function. This is one such occasion.