Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Way to find innermost object on a form..
Message
De
14/11/1997 13:34:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00060033
Message ID:
00060309
Vues:
23
>>>>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
>>>
>>>Ken, how many Combos & list boxes do you have on your 5 pages? Each combo/listbox will take time to load, depending on the data you load it with. You might want to check those items specifically.
>>>
>>>HTH
>>>Barbara
>>I haven't counted exactly, but there are nine comboboxes with rowsource=3. There are more than that on the form, but no more than a total of 12 or 13 comboboxes and listboxes combined...
>
>Ken, try putting
>
>wait window this.name nowait
>
>in the Init of each combo (or wherever you are loading the record source of the combo), and watching the form load. You may find that putting information into the combos is a large part of your delay.
>
>In one case where I had many combos loaded from small lookup tables I pre-loaded this information into arrays as part of my EXE startup procedures. Then when each form loaded the array was assigned to the correct combo. Although it increased the initial load time of the EXE by about 10 seconds it saved a LOT of time for the users as they worked.
>
>Barbara

Thank you for the response. I found the time delay seems to occur during the form.load event. I put a wait window this.name in the form.load event, in the DE.init, and in each combobox.init. When I loaded the form, the time between DE init and form.load was minimal(only seconds), the time between form.load and the first combobox.init was delayed. I am going create a cursor necessary for the comboboxes(some use the same data) in the apps startup, possibly the form.load event and bind the boxes to those cursors.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform