LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

login and change password using string

ithe problem i m faceing is tht i user interface as follow
 
old password
new password
confirm password
 
 
the problem is tht old password is in file i m readind tht and using event handeler for tht comparing entered  value in old password field.
but  to go to next field i have to use tab . i want to use enter key
0 Kudos
Message 1 of 3
(3,890 Views)
Hi ezeemon,

so use your event handler to detect "enter key-press" to advance to the next string input (using property node to set focus).
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(3,888 Views)
Expanding on GerdW's answer, you will need to create a property node for each of the subsequent string controls by right-clicking the controls' nodes on the block diagram and selecting "Create»Property Node»Key Focus."

You can then right-click this and change it to write mode.  You now have the ability to change the key focus to the appropriate field be feeding it a "true" boolean value.

In your event structure, you will need some kind of logic to determine which field the key focus is currently on (this can also be done using Key Focus property nodes, but in read mode this time) and then change the key focus to the next field accordingly.

Please let us know if you have any problems.


Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 3 of 3
(3,846 Views)