LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filter illegal characters

Solved!
Go to solution

I'm trying to filter illegal file name characters using an event structure.  At the same time I don't want a legal character to be displayed more than once if a key is held down continuously.  I've tried KEY DOWN? and KEY REPEAT? and I can't get my desired results in either case. See the attached.  Thanks in advance.

0 Kudos
Message 1 of 5
(3,926 Views)

If you have a string control you can right click and select the option "value change while typing" or something along those lines. That will cause every time the string is changed to create a value change event.

0 Kudos
Message 2 of 5
(3,914 Views)

You only have a fitering event for "key repeat?. You also need to add a "key down?" fitering event to the same event case.

 

(You can delete the timeout case. You should also initialzie the shift register).

0 Kudos
Message 3 of 5
(3,904 Views)
Solution
Accepted by topic author AT1
Message 4 of 5
(3,899 Views)

Excellent!  Thanks for your help.

0 Kudos
Message 5 of 5
(3,852 Views)