Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why return .F. from Error Event?
Message
 
 
À
25/04/2001 16:45:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00499843
Message ID:
00499852
Vues:
23
Hi!

Craig, can you explain more: how the .F. value returned from the Error method is related to the control to function as you mentioned? Can you send some samples to reproduce this behavior?

>>I was just perusing the Error event code in some of the classes in the My Base Classes Catalog of the VFP Component Gallery. I noticed that if an 'ignore error' property is set, the Error event returns .F.
>>
>>This got me to wondering if returning .F. from the Error event had an special effect (like maybe triggering ON ERROR or something), but a simple test revealed no obvious behavior associated with returning .F. from the Error event. And searching through the online Help and Hackfox provided no insight.
>>
>>Do these canned classes simply have some customized way of utilizing an Error event that returns .F. .... or is there some subtle intrinsic behavior associated with returning .F. from the Error event that's just not documented too well?
>
>
>Nope. Returning .F. prevents focus from leaving the control.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform