Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clear TextBox

Status
Not open for further replies.

infoReceiver

Programmer
Sep 22, 2003
8
IN
How to delete the contents of Text Box????
I used Textname.TEXT = ""
But i am get error stating "Compile Error...
Method or data member not found"

 
Hi,

this should work so I guess that you've got the textName spelled wrong or the text is out of context, meaning on another form. If you are trying to set the value of a control from a different form or module then you should reference the form it resides as well.

Hope it helps!

nicsin
 
infoReceiver,
That should work. Where is the code? If not within the form code then you'll need to fully reference it:
Code:
frmFormName.txtTextbox = ""

pmrankine
 
Is the textbox an array of textboxs?

If so then try textname(X).text=""

Wayne
 
It is actually a text box isn't it .. not another control you have named textname ...

you probably haven't must just checking!

Transcend
[gorgeous]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top