Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Button.cancel and valid()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00149787
Message ID:
00151068
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform