Ed writes:
>>If valid returns .T. or a non-zero numeric value, the ControlSource is updated with the contents of the control at that point. If the ControlSource is a field in a cursor, that field is updated then. With buffering, LostFocus could possibly revert it to its original unchanged value, but it is severely limited - it can only revert or accept. If there was an intermediate value, it's gone by the time LostFocus() fires.<<
So, Ed, this intermediate value you're talking about, you mean the value that the user has typed in but hasn't been committed to the controlsource, right? In other words, once the LostFocus fires (as opposed to completes?) the escape key will no longer revert to the original value.
I tried this just now with VFP8, and I can escape to get the original value regardless of whether I return .F. from the valid or NODEFAULT in the LostFocus. So in both cases, neither one writes the value to the controlsource using either technique.
I maintain my assertion that LostFocus and Valid are the same thing.
-Chuck Urwiler, MCSD, MCDBA http://www.eps-software.com
PS Sending from my personal account because EPS is moving to a new office building today and our mail server is offline for the weekend.
©2003 curwiler .at. comcast .DO.T net |