*Experts* DiverDan Posted March 28, 2003 *Experts* Posted March 28, 2003 What are the differences of clearing textboxes' text between: TextBox.Text = "" TextBox.Text = Nothing TextBox.ResetText() Eventhough there are probably a handful I left out, they all appear to accomplish the same thing. Thanks Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
Guest mutant Posted March 29, 2003 Posted March 29, 2003 Those two clear the TextBox: TextBox.Text = "" TextBox.Text = Nothing This returns the TextBox to its default value, so if you create your own control that uses this textbox you can put some default text in it, and it will return to it. TextBox.ResetText() Quote
*Experts* DiverDan Posted March 29, 2003 Author *Experts* Posted March 29, 2003 Thanks for the clarity Mutant. Dan Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
Moderators Robby Posted March 29, 2003 Moderators Posted March 29, 2003 Cool stuff mutant, I didn't know about TextBox.ResetText() Quote Visit...Bassic Software
*Experts* Bucky Posted March 29, 2003 *Experts* Posted March 29, 2003 Heh, me neither, Robby. :) The method I use to clear a textbox is TextBox.Clear(), which is essentially the same as TextBox.Text = "" Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.