How to clear a text box

What’s a good way of clearing a text box?
Using setpatch to change the input string pin doesn’t have any effect it seems.
Is there a ‘hidden pin’ which can be changed?

just found SetIO (String)
ignore me