ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(4,868 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
(4,856 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
(4,846 Views)
Solution
Accepted by AT1
Message 4 of 5
(4,841 Views)

Excellent!  Thanks for your help.

0 Kudos
Message 5 of 5
(4,794 Views)