Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow when no child records
Message
From
09/07/2004 03:11:31
 
 
To
08/07/2004 21:00:36
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00922257
Message ID:
00922412
Views:
18
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform