Gene Wirchenko wrote on 2014-03-10: 
>  At 16:21 2014-03-07, Eurico Chagas Filho <e28cha...@yahoo.com.br> wrote:
>  Well, you only need to validate when u r saving some data, right.
> 
>        No.  I need it when changing rows, too.
>> So, from the queryunload() u call the save()
>> method, and it calls a beforesave()
>> method where u check your data.
>> Therefore u only save if your data is ok, if it
>> is not and u want to leave the form, u just donĀ“t
>> save the data.
> 
>        My validation is also at the control
>  level.  I need to detect the form close so I can
>  bypass that validation.  The QueryUnload happens
>  after when I need to know that it will happen.  Thus, my kludge code.
>  
>  [snip]
>  
>  Sincerely,
>  
>  Gene Wirchenko


Gene,

The form's ReleaseType property will be set before the LostFocus event is
fired. 

Tracy Pearson
PowerChurch Software


_______________________________________________
Post Messages to: ProFox@leafe.com
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/000301cf3c8c$03824230$0a86c690$@powerchurch.com
** 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