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: 

how to clear string control

hello,

after writing some input into string control and clicked "Ok" button, how to clear the string control?

Thank Smiley Happy

0 Kudos
Message 1 of 13
(7,775 Views)

You can write an empty string into the control using a local variable (requires state machine or similar as architecture) or value-property node (can be "sequenced" using error wire).

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 13
(7,772 Views)
how to write or read string after operation auto clear
0 Kudos
Message 3 of 13
(7,701 Views)
how to write or read string after operation auto clear
0 Kudos
Message 4 of 13
(6,917 Views)

Can you clarify your question?

0 Kudos
Message 5 of 13
(7,698 Views)
0 Kudos
Message 6 of 13
(6,914 Views)

Hope this leads you in the right direction

Derick Mathew
0 Kudos
Message 7 of 13
(7,662 Views)

Hope this helps 🙂

 

 

clearString.jpg

Derick Mathew
Message 8 of 13
(7,659 Views)
Can you please explain the method in detail, I have a string control and OK button so whenever I enter something into that string and press OK button the string field need to get cleared .. Can you help me in doing that
0 Kudos
Message 9 of 13
(7,349 Views)

If you can try creating new thread along with what you tried would be more better.

-The event structure is required to listen to the OK button event.

-Inside the event strcture you simply needd to pass empty string constant to the value property of string control.

-The image exactly does what you need.

Thanks
uday
0 Kudos
Message 10 of 13
(7,347 Views)