main logo
Subject: Re: Restrict Textbox Values?
Author: Ed Leafe
Posted: 2003/10/31 09:11:00
 
View Entire Thread
New Search


On Friday, October 31, 2003, at 09:48 AM, Cotton Mr Jerry P wrote:

> Let me get this straight. You're saying that the data gets written to
> disk
> in the Valid and that you can't revert it in the lostfocus. Are you
> saying
> that you would allow code to prevent a control from losing focus but
> the
> data was already written to disk. Doesn't sound to kosher to me.

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.

___/
/
__/
/
____/
Ed Leafe
http://leafe.com/
http://opentech.leafe.com



 
©2003 Ed Leafe
<-- Prior Message New Search Next Message -->