Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HELP !! How do I avoid doing Valid ?
Message
De
01/09/2000 11:23:37
 
 
À
01/09/2000 11:19:31
Rene Boshoff
Castledex Information Systems
Johannesburg, Afrique du Sud
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00411749
Message ID:
00411751
Vues:
12
>I am writing my 1st application in FoxPro and need some help.
>
>I do a seek in the "valid" event of a text box to make sure it exists in a table. If not, I show an error message ("this value does not exist!") and return .f., else I return .t.
>
>I've created command buttons to "Save" and "Cancel".
>
>If the "Cancel" button is clicked, the valid event causes the error message "this value does not exist" to pop up and I cannot get out of the test box until a valid value has been entered.

Set the Cancel button's Cancel property to .T.
Then in the textbox.Valid() check LASTKEY()=27 - if so, then the Cancel was clicked - return .T.
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform