
-----------------------------------
who cares?
Mon Oct 06, 2003 5:34 pm

Reseting text fields
-----------------------------------
Hi!

What do I have to do in order to reset a text field (from the GUI module)? I have a loop and each time the loop repeats itself, I want to be able to reset the field, so that the next time that the used enters something it will be blank. Thank you very much.

-----------------------------------
Tony
Mon Oct 06, 2003 5:44 pm


-----------------------------------

GUI.ClearText (widgetID : int)


This should clear the text in the spesified textbox.

If you're using a textfield, you would have to use

GUI.SetText (widgetID : int, text : string)


and set text to "" (blank)

-----------------------------------
who cares?
Mon Oct 06, 2003 6:31 pm

Thanks
-----------------------------------
Thank you very much.

-----------------------------------
krishon
Sat Oct 11, 2003 10:06 am


-----------------------------------
yah..i've always hated the gui in turing....its so much easier in java...it pops up for u when inputting :lol:

-----------------------------------
Andy
Sat Oct 11, 2003 2:26 pm


-----------------------------------
does turing still crash when u press any key when u have a textbox up?

-----------------------------------
thoughtful
Sat Oct 11, 2003 11:22 pm

dont think so
-----------------------------------
I dont think that 4.0.4 crashes , but i heard that if you have a text field and a textbox on the same page it crashes. but this will be fixed in the next version, at least thts wht i heard.
