LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
PBP

"Combine this case with" option in Case structure drop down menu.

Status: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.

Many times I face difficulty when I want to assign multiple condition to single case ( Enum type). I need to type text in case structure.

 

Example: Consider I have 4 state enum ( Case 1, Case 2, Case 3, Case 4). If I need to combine Case 1 with Case 3 then I required to type Case 3 beside Case 1.

 

I suggest "Combine this case with" option in Case structure drop down menu in case of enum type.

 

I have attached image for better explanation.

 

Combine Case.png

PBP
Labview 6.1 - 2019
6 Comments
RavensFan
Knight of NI

What do you propose to do with the code that is in case 1 and the code that is in case 3?  They are probably going to be different.

PBP
Member
Member

Hi Ravens Fan,

 

Look here,

 

Condition.png

Smiley Happy

PBP
Labview 6.1 - 2019
elset191
Active Participant

I think his point was, what happens when you combine the Jan,Mar case with the Feb case?  It's going to break something...

--
Tim Elsey
Certified LabVIEW Architect
crossrulz
Knight of NI

Maybe if the only options are the unused enum values...


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
Darin.K
Trusted Enthusiast
Long term I have always wanted a way to link multiple selector values to the code in a single frame. This way there are no crazy lists, each selector value displays a single value or a single range. Functionally it would be the same, and would be completely optional, it just strikes me as a nice way to directly see which case handles which value. This idea is a potential shortcut to longer lists, I will see where the discussion heads before I decide.
Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.