Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IsNumeric - VFP analogue?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00307922
Message ID:
00308505
Vues:
51
Nadya,

In the Gotfocus Of the container you set teh defautl proeprty of the button to .F. and in the keypress of each textbox you put;
IF nKeyCode = 13 && Enter
   IF EMPTY(This.Value)
      NODEFAULT
      Thisform.MethodCalledByTheDefaultButton
   ENDIF
ENDIF
In the LostFocus of each textbox you put:
Thisform.DefaultButton.Default = .T.
You might want to add a property to the textbox class to hold the name of the default button so it isn't hardcoded.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform