LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear up a string control afer input

Altenbach, thanks for your solution above. It also helped me. Anyway, how can I make the string selected (like hold "Shift" and press "Home" on the keyboard) so that another input can be done immediately without clearing the string. I couldn't find a way of sending keystrokes to a string. 

0 Kudos
Message 11 of 15
(991 Views)

I don't understand what you are trying to do.

 

You can do filtering "key down?" events (on the control or on the panel), for example to achieve almost anyhtng you want.

0 Kudos
Message 12 of 15
(989 Views)

You can see the pics below. You might experience it when you input the wrong password in Mac OS login screen. YOu dont need to delete the string to input another because it's automatically highlighted.

1.PNG

2.PNG

0 Kudos
Message 13 of 15
(972 Views)

Like this.

 

Set the key focus of the control.  Set the Selection Text to go from 0 to some number equal to or greater than the length of the string.

 

Message 14 of 15
(954 Views)

Thank you RavensFan, it worked. You saved me a lot of time!

0 Kudos
Message 15 of 15
(943 Views)