Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use nodefault in VFP6?
Message
De
05/12/2000 12:38:56
 
 
À
05/12/2000 12:20:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00449463
Message ID:
00449485
Vues:
15
Let say that you want to prevent the user from typing the letter "A" in a textbox. You would write the following code in the textbox KeyPress() event:
IF Upper(Chr(nKeyCode)) = "A"
	NODEFAULT
ENDIF
If you did not include NODEFAULT in the IF block, VFP would have executed it's default behaviour and a key press and would have displayed the character "A" in that case.

HTH
>I have notice the nodefault option in define class command, what the 'nodefault' affect? I don't understand what the MSDN library say.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform