Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When is NODEFAULT used?
Message
De
23/04/1999 08:53:03
 
 
À
22/04/1999 21:22:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00211090
Message ID:
00211458
Vues:
32
>>
>>NODEFAULT is used anytime you see something strange :-). Theoretical definition is that NODEFAULT suppresses base class behaviour, which is actually means some code hidden behind the scene. The most common example: when you finish typing in textbox the focus automatically moves to the next (by tab order) controls. But you did not write code to invoke this behaviour, correct? This is exactly 'hidden'/'internal'/'base class' code. So, if you want instead to move to another controls, then it's safe to say in this control lostfocus event:
>>Thisform.AnotherControl.Setfocus
>>NODEFAULT
>
>
>Would this be another example:
>
>Say I want to interrupt the built-in LISAG sequence (thanks to Drew). If I execute NODEFAULT at the end of the Initiate event then Show, Activate, and Gotfocus never happen. Am I right?
>
>Peter Robinson

No, you should return .F. from Init event.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform