I haven't done this in a while, but I think the solution to this was to 
set your cancel button's cancel = .T., then in your validation code 
check for the escape character before running your code.  Was it CHR(27)?
 

Frank.

Frank Cazabon
Samaan Systems Ltd. - Developing Solutions
www.SamaanSystems.com/

Referrals are important to us. 
If you know of anyone who would benefit from our services, please contact me. 
We would appreciate the opportunity to work with them.



Sytze de Boer wrote:
> I have a form with a bunch of text boxes
> It has 2 command buttons, OK and CANCEL
>
> One of the TEXT boxes has a valid condition that says "Sorry, Reference may
> not be left blank"
> My client says, Hang on, I just clicked the Cancel button, I don't want to
> enter a Reference
> But I can't find a way to do this.
>
> (Should I remove the valid clause and make it part of the OK command?)
>
>
>   


_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4acc68b9.80...@gmail.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