Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identifing the current control name
Message
 
 
À
29/06/1998 11:34:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00112518
Message ID:
00112574
Vues:
30
If the Cancel property of the commandbutton is set to true you can begin all of your valid code with:
if ( lastkey() = 27 )
   return .t.
endif
* rest of valid goes here
Or look at moving the validation to a field/table level rule and don't worry about validating each control with code. This also gives the user more freedom to move around the form as they please.

>See in a master the focus is on the Primary key field.
>I want if the user presses the cancel button then no
>validations should be done. What I feel is when the user
>clicked on Cancel button I should able to know the
>current control. Is there any way to findout this?
>or any other solution.
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