From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(763 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
(761 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
(744 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
(726 Views)

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

0 Kudos
Message 15 of 15
(715 Views)