Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Reseting text fields
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
who cares?




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Oct 06, 2003 5:44 pm   Post subject: (No 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)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
who cares?




PostPosted: Mon Oct 06, 2003 6:31 pm   Post subject: Thanks

Thank you very much.
krishon




PostPosted: Sat Oct 11, 2003 10:06 am   Post subject: (No subject)

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




PostPosted: Sat Oct 11, 2003 2:26 pm   Post subject: (No subject)

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




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: