2022-05-19 03:42 PM
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?
2022-05-20 01:05 AM
What if you just use an empty string - ie, "" ?
Or maybe a string that contains only whitespace?
2022-05-20 01:34 AM
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