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

TextBox LostFocus 1

Status
Not open for further replies.

Creeder

Programmer
Jul 5, 2000
110
MY
Hi All,

In the LostFocus() event of my text box i perform a value check, and if an invalid is entered, i want to force a focus on that same textbox. I've tried setfocus but did not work.
Any ideas?

Thanks

Yue Jeen

[sig][/sig]
 
Move the code from the LostFocus to the Valid, and if the check fails, either RETURN .F. or RETURN 0. [sig]<p>Robert Bradley<br><a href=mailto: > </a><br><a href= - Visual FoxPro Development</a><br> [/sig]
 
Thanks Robert, it works perfectly. [sig][/sig]
 
Use nodefault statement in lost focus method before setfocus.
Then it works fine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top