LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
ouadji

Case Structure - select frames : by name, but also by index

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

Case Structure

select frames : by name, but also by index

the default behavior : by name

 

SR1.png

7 Comments
altenbach
Knight of NI

The case is selected based on the value going to the selector terminal so I am confused what you mean by "select" at edit time. Do you want to "show" the code of a certain case? What do you mean by "frame"? What is the "index" of a case? Since cases can be reordered without changing the code logic, it is not clear what you actually want here. Could you clarify?

ouadji
Trusted Enthusiast
fabric
Active Participant
ouadji: Don't be embarrassed about your English. It is usually clear enough, and I always like your pictures! 🙂
ouadji
Trusted Enthusiast

"and I always like your pictures!Smiley Happy

 

Thank you for your encouragements.

If I could write English usually, I could explain and say so many things, as with french ... arggg !

It is frustrating, really !  As I always say, I do my best. Smiley Happy

 

dthor
Active Participant

I don't think there is a need for this because the Case structure does not depend at all on the index. The only structure that does is the stacked sequence structure, and there is a strong push for people to not use that.

 

If this were implemented, and then someone went in and rearranged your cases, then any code that relies on your index would break.

ouadji
Trusted Enthusiast

"if this were implemented, and then someone went in and rearranged your cases, then any code that relies on your index would break."

 

1)

It is also possible with the current behavior of LV.

if someone rearranges the names of your frames, then any code would break too.

with this node:

SR1.png

2)

if it's not possible to select a case structure by index,

What is the usefulness of this :

SR3.png

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.