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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

erase the data in a textbox ?

Status
Not open for further replies.

Bullfrog

MIS
Sep 21, 1999
7
0
0
US
whats the code to check a textbox to see if text has been <br>
erased by a key down , drag thru to hilite and punch delete<br>
Thanks
 
Hmmm<br>
<br>
There's probably a clever way to do this (Alt255's the clever one) but you could always just save the contents of the text box and then, when the user has finished with it, compare the current contents of the text box with yor saved copy.<br>
<br>
Do you need to specifically trap when the user has deleted the text box all in one go?<br>
<br>
-ml <p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
If you initialize the text box with one space, you can use the text change event to see if the text box length is changed to zero.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top