Computer Science Canada

Reseting text fields

Author:  who cares? [ Mon Oct 06, 2003 5:34 pm ]
Post subject:  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.

Author:  Tony [ Mon Oct 06, 2003 5:44 pm ]
Post subject: 

code:

GUI.ClearText (widgetID : int)


This should clear the text in the spesified textbox.

If you're using a textfield, you would have to use
code:

GUI.SetText (widgetID : int, text : string)


and set text to "" (blank)

Author:  who cares? [ Mon Oct 06, 2003 6:31 pm ]
Post subject:  Thanks

Thank you very much.

Author:  krishon [ Sat Oct 11, 2003 10:06 am ]
Post subject: 

yah..i've always hated the gui in turing....its so much easier in java...it pops up for u when inputting Laughing

Author:  Andy [ Sat Oct 11, 2003 2:26 pm ]
Post subject: 

does turing still crash when u press any key when u have a textbox up?

Author:  thoughtful [ Sat Oct 11, 2003 11:22 pm ]
Post subject:  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.


: