Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The speed to run the form depends on ?
Message
 
À
18/01/2001 05:25:44
Agnes Cheng
DynamicTech Consultants Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00465045
Message ID:
00465049
Vues:
16
>I had posted the similar question before, But I still can't solve my problem
>
>I got several forms, which got 5pages frames,
>the no.of textbox over 50 , there are 2 grids,
>
>In the data environement , I put around 22 tables,
>1 is company tables, which got over 3000 thousand records.
>around 7 tables got over 1000-4000 records.
>
>Now , as I load the run from the menu bar,
>It spends the time over 30-40 seconds.
>
>IF there is no records in all tables.(except the company, currency,country) ,
>It spends the time over 5 seconds,
>
>My problem is 'Are There too many object, so that the loading time is too long' ?
>
>Or. My form got too many tables, ? (I got put the tables, No'views')
>
>Any solutions can make the form load much faster ?
>
>Thanks.
>From Agnes


A thing i've done with big forms is only loading the parts directly visible.
So only the things on page one.
The controls on page2 (and the other ones) i placed in a container class.
When the page gets activated i programaticly add the container to the form.

Another thing you can do is have the tables opened at application startup.
The you only have to open them once, and not every time the user opens the form

In my case i'm now opening all my base tables at startup, and the form specific tables in the dataenvironment of the form.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform