cancel
Showing results for 
Search instead for 
Did you mean: 

How to print no string?

ALuiz.1
Associate II

Hi,

I'm using a container with a text area with no wildcard for printing different strings, it works fine with text.setTypedText(TypedText(T_XX)); according to the if value. But sometimes it needs to print no string, something like text.setTypedText(NULL); but I can't do this, it doesn't accept NULL parameter and using wildcard, it prints the previous value of text area. How to clean the text area?

2 REPLIES 2

What if you just use an empty string - ie, "" ?

Or maybe a string that contains only whitespace?

Osman SOYKURT
ST Employee

Hello ALuiz.1,

I'd go for a solution like Andrew Neil said. Just create a new text empty, and use it in your code.

Don't forget to call the invalidate() function with your textArea widget so that the previous value will be removed and the new one (empty string) will be applied.

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX