LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean true/false for String Control

Solved!
Go to solution

Hi All, 

 

Is there a simple way to determine if there are any characters populated into a string control?  For example, I would like to produce a boolean true if there are characters written in the string control, and false if the control is empty?

 

Thanks,

Nick

0 Kudos
Message 1 of 4
(1,188 Views)
Solution
Accepted by NickIke1

Try negating the output of "Empty String Path Filename?" on the Comparison pallet.


"Should be" isn't "Is" -Jay
Message 2 of 4
(1,183 Views)

Perfect, thanks!

0 Kudos
Message 3 of 4
(1,175 Views)

Also remember that string controls have a few more additional useful options such as "limit to single line" and "update value while typing".

 

By default, characters in a string control are not read by the code until the entry is finalized (clicking outside, hitting <enter> if set to "limit to single line", etc.).

 

If you set it to "update value while typing", you'll get a more instant response if programmed correctly.

0 Kudos
Message 4 of 4
(1,101 Views)