Jump to content

Validation Issue


Recommended Posts

First, did you really just put your phone number in a post on the internet?

 

Beyond that here is a method that doesn't need any validation.  It sets the max and min of the control to the range based on the drop down selected.  It then normalizes in Hz and GHz.  No need to write code checking if the range is valid, you make the control only accept the valid range.

Freq validation Hooovahh Edit.vi

Link to comment

Hello Dear,

 

You given the Max. & Min. limits for the control and your changing the value according to units and there is no error popup in this case. But in my application the value in the control should not change with respect to units. That units conversion should be happened internally and it will validate value and units accordingly. If the value beyond the limits it should popup. Here the value and the units are dependents. we have to create the dependent events. Kindly let me know any procedure to create the dependent events,

 

Thanks & Regards,

S Nagaraju

Link to comment

Otherwise you'll never get that pop-up

Which was by design.  If you have a pop-up for every control being out of range your users are going to get quite annoyed.  What's wrong with the built in feature of setting the control range?  It meets the requirements in a cleaner, more scale-able, more modular, more reusable, and more user friendly way.  I can think of very few benefits of prompting the user every time.

 

Still if that is what you really want my code can be modified quite easily as ThomasGutzler showed.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.