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

Reset Single Line Edit Control

Status
Not open for further replies.

beti

Programmer
Oct 6, 2002
26
US
How can I reset or clear the field of Single Line Edit Control or a drop down datawindow? What I want to do is when user enter a wrong login id and password, a messagebox will warn the user and it will setfocus back to the login window where all the fields (drop down datawindow and SingleLineEditControl) will clear the content and let user to reenter the info again.
I have try to selectedtext() then clear() function but it gave me error message.
 
if your sle control is on window, just simple type sle_name.text = ''

if your sle control is inside datawindow, type dw_name.reset() or dw_name.object.sle_name.text = ''


hope this help.
 
On top of that, make sure you do a dw_XX.SetFocus() to set the focus back on the datawindow after you have cleared the fields.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top