Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Job interview questions, any suggestions
Message
De
29/02/2000 17:51:51
 
 
À
29/02/2000 17:46:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00339251
Message ID:
00339455
Vues:
22
>>That information is documented, why would I need to memorize it? You can't expect someone to know EVERY aspect of VFP.
>
>Weird as it is, I don't think its documetned any where, but before I saw this I was going to post:
>
>How about "If you wanted to find the event order, how would you do it?"
>Wait Windows are no good.

From Chapter 4 of the Programmer's Guide, "Understanding the Event Model":

Setting Event Tracking On
The best way to see the Visual FoxPro event sequences is to set event tracking on in the debugger. Event tracking allows you to see when each event associated with your own forms and controls occurs in relation to other events, so that you can determine the most efficient place to include your code.

The Visual FoxPro Event Sequence
The following table shows the general firing sequence of Visual FoxPro events. The data environment’s AutoOpenTables property is assumed to be set to true (.T.). Other events can occur based on user interaction and system response.

Object Events
Data environment BeforeOpenTables
Form set Load
Form Load
Data environment cursor(s) Init
Data environment Init
Objects 1 Init
Form Init
Form set Init
Form set Activate
Form Activate
Object1 2 When
Form GotFocus
Object1 GotFocus
Object1 Message
Object1 Valid 3
Object1 LostFocus
Object2 3 When
Object2 GotFocus
Object2 Message
Object2 Valid 4
Object2 LostFocus
Form QueryUnload
Form Destroy
Object 5 Destroy
Form Unload
Form set Unload
Data environment AfterCloseTables
Data environment Destroy
Data environment cursor(s) Destroy


1. For each object, from innermost object to outermost container
2. First object in the tab order
3. Next object to get focus
4. As the object loses focus
5. For each object, from outermost container to innermost object
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform