Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Slow when no child records
Message
 
 
À
08/07/2004 21:00:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00922257
Message ID:
00922412
Vues:
16
>More info.
>
>I create a new form form scratch using the basic VFP form, added my 2 tables in the DE, put the relation. On the form I put one txt box (no source code) one grid with two columns (record type is alias and record source is the child talbe. column data source are the two first fields in the child table) and a command button which will seek the parent table for the value I enter in the txt box. Everything is basic VFP6.
>
>When I search for a parent record with childs it takes 1 or 2 seconds.
>When I search for a parent record WITHOUT child it takes 2 minutes.
>
>I tailored the delay to be during the grid.refresh() method although I put nothing in there myself.
>
>Is it a normal behavior in VFP6?
>
>TIA

Hi.
Just for the sake of experiment.
Clean the form's DE.
Wrap the form in a prg.
Open your tables and establish relations in the prg.
DO FORM yourform

All the best
A moment of silence is our cosmic reset button.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform