Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Button.cancel and valid()
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00149787
Message ID:
00151068
Views:
18
Kevin,

I'm all for code in one place only.

The problem with the Valid is you can't get out of it without testing for the escape key from the cancel button click.

>One technique is to have your cancel button, form.keypress and form.queryunload
>methods all call a single method, say 'FormClose'.
>
>Then you could test weather you want to close and return .T. or .F. to the
>calling method and still keep the controlling code in one place.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform