Back in the day, all we had was VALID and it was good... or not good... <g> The 
boolean value returned from the valid code determined if the user could move on 
to the next data entry control. If we return .f. from the VALID, the user is 
effectively told they can't leave the table until they eat their veggies. :-) 

Because this was the only place where post entry code could run, we quite often 
stuffed things in the VALID that weren't really related to validating the data 
entered, such as data entry flow control. Using the lostfocus event allows us 
to separate the data validation from the flow control. It should be used to 
determine what happens when the user attempts to exit the control. For example, 
the user may not have entered good or complete data but we may want to allow 
him to enter other bits in the form. Or perhaps we want to set focus to or 
display different controls depending on the data entered in the control we just 
left. The lostfocus event is where, imho, to code that kind of stuff.

--
rk

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Gene 
Wirchenko
Sent: Wednesday, January 30, 2013 3:29 PM
To: [email protected]
Subject: Re: Using LostFocus Instead of Valid

      That is the missing bit for my main problem.  I rarely have occasion to 
use nodefault.  In fact, it does not occur in my app at all.  If I get this 
working, I suppose it will be making it debut.

      Next is bypassing the validation when certain buttons are clicked.  I 
believe that there is a sys() call that helps with that.

[snipped previous]


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD0442181BC6F5E@ACKBWDDQH1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to