Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INDEX problem or bug
Message
From
09/07/2007 11:02:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
09/07/2007 07:19:13
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01238557
Message ID:
01238620
Views:
7
>>>I have a Form in which Data Environment has two tables Parent and Child.
>>>They are in parent-child relation.
>>>
>>>In Form there are controls (textboxes and grid) for showing values of Child fields.
>>>
>>>When I do INDEX ON childfield command for table Child and after that do thisform.refresh() all values in textboxes and grid are blank, they disapear.
>>>But when I look in data session all values are in tables like they were before INDEX command.
>>>
>>>I am not sure if this is a bug or what, but it's a problem for me, I can't solve it.
>>>
>>>Help anyone?
>>
>>Boban
>>
>>Why do you do the index if they are already on the form, in the DE, in parent-child relationship? The movement of the file pointer in the parent table should automaticall fetch the child recs for the parent, in the grid.
>>
>>Terry
>
>Because of sorting for display purposes.

If you also use an index to decide what child records to show, then there is a conflict. If this is the case, you are better off if you use a parameterized view for the child records. Then you would have no trouble in creating temporary indices - which would, by the way, be created much faster, for you are only indexing the records that are shown.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform