LabVIEW Idea Exchange

About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
cancel
Showing results for 
Search instead for 
Did you mean: 

Allow a Refnum as a Case Selector

I do this a lot:

ref1.png

I'd rather do this:

ref2.png

"If you weren't supposed to push it, it wouldn't be a button."
4 Comments
Proven Zealot

I would strongly oppose this change on the grounds that it would make the very dangerous "Not A Refnum?" test harder to find in an application. Here's my post on the subject:

https://lavag.org/topic/15546-are-you-misusing-the-not-a-refnum-function-and-putting-your-app-at-ris...

 

If you are writing code like what is shown above, I am very worried about your application's correctness. I would advise you to rewrite your application to avoid that pattern. See the post on LAVA for details.

Proven Zealot

> "If you weren't supposed to push it, it wouldn't be a button." 

 

Untrue, as demonstrated by the existence of the "Not a refnum?" primitive. 🙂

Proven Zealot
Active Participant
Status changed to: Duplicate