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 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
(5,592 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
(5,589 Views)
how to write or read string after operation auto clear
0 Kudos
Message 3 of 13
(5,518 Views)
how to write or read string after operation auto clear
0 Kudos
Message 4 of 13
(4,734 Views)

Can you clarify your question?

0 Kudos
Message 5 of 13
(5,515 Views)
0 Kudos
Message 6 of 13
(4,731 Views)

Hope this leads you in the right direction

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

Hope this helps 🙂

 

 

clearString.jpg

Derick Mathew
Message 8 of 13
(5,476 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
(5,166 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
(5,164 Views)