Dear Vixens and Reynards:

     I am playing with handling validation by putting it in .LostFocus.

By accident, I ran into a problem when closing the form. If the current control has validation on it, I get the validation error. Then, the form stops.

I have been trying .ReleaseType, but it has issues (noted below). How should I be using .ReleaseType, or is there a better way to intercept that the user has clicked on the form's close button?

By using .ReleaseType, I can avoid this, but I am not sure that I am using it right. What I do in my validation is check if thisform.ReleaseType>0 and if so, bypassing the validation.

Since.ReleaseType does not appear to have a well-defined usual value, I can not be sure that this is safe. For example, try this:
          o=createobject("form")
          ? o.releasetype     && prints 0
          o.show
          ? o.releasetype     && prints 1
This is without trying to close the form.

.ReleaseType is defined for use in .QueryUnload. Can I be sure that it is safe to use in validation?

Sincerely,

Gene Wirchenko


_______________________________________________
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/
** 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