Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Way to find innermost object on a form..
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00060033
Message ID:
00060061
Vues:
25
>>>>>>Is there a way to find out which object in a form is the first to fire its INIT method? I have a form with a pageframe with 5 pages ( I know this isn't necessarily the best way to do this) and I am having trouble with the form loading. The problem is that it takes anywhere from 3 to 5 minutes to load. I have already checked in the DE and found that to not be the problem. The DE is set almost instantly upon INIT. I had set a SUSPEND statement in the form's INIT method, but the speed problem is occurring between the DE's INIT and the form's INIT. How can I tell which object is the first to fire its init? I need to trace through from this point to find my problem...
>>>>>>
>>>>>>
>>>>>>TIA
>>>>>
>>>>>Add
>>>>>Wait window this.name nowait
>>>>>into all suspected inits and run the form.
>>>>Thanks! I'll try it...
>>>
>>>That's a good strategy to test which event is taking all the time; to see the firing order of all events, open the debugger and under the tools menu item, choose event tracking. Turn event tracking on and set the output to the output window (or to a file if you wish) After you run the form you can come back and see all the events that fired, in the order they fired.
>>
>>That would have been the way I would have gone had i been using VFP5.0. Unfortunately, this app didn't make it into the 5.0 lineup. Too many problems in the 3.0 version to try and upgrade to the 5.0 version.
>>Out of curiosity, does the order of the records in the SCX file have anything to do with the order in which the objects load?
>
>Ken
>
>5.0 init helps says----
>'For form sets and other container objects, the Init events for all the contained objects are triggered before the container’s Init event, so you can access the contained objects within the container’s Init event. The Init event for each contained object occurs in the order it was added to the container object.'
>
>
>HTH
>Jeff
Thank you. That is a major clarification. I couldn't find anything specific to the order of loading with objects within a container. I new that events fired from the inside out, but not what order once you were inside the container.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform