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

SETFOCUS() Question

Status
Not open for further replies.

fkwong

Programmer
Jul 5, 2002
65
US
I have a field called 'dlr_code', it has a LostEvent code block that has some logic, one of the condition is to return to the 'dlr_code' so that the user can re-enter the value. Other conditions will go to other SETFOCUS() fields in the form.

I cannot put the code block in the Valid event because there are other SETFOCUS() codes.

Please advice.
 
In the lostfocus try:

If <myCondition> =.t.
DODEFAULT()
ELSE
RETURN 0
ENDIF
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Hi

one of the condition is to return to the 'dlr_code' so that the user can re-enter the value

In the LostFocus Event
IF myCondition
NODEFAULT && To return to the dir_code
ENDIF

Hope this helps you :) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top