I’m having a problem I call “Ghosting” and I need some help from you. My users are reporting that information that was previously retrieved is being displayed after the they change the views retrieval key. What makes this problem worse is that it happens intermediately.
Here is the scenario:
The user chooses a retrieval key and opens the form. They close the form and choose a different retrieval key. They open the form the second time and the old child information is displayed!
This form has a grid that is bound to a parameterized local view. Here is the code in the form.load:
*-- Open view if not already
If ! used(“vwsuprvsn”)
Use vwsuprvsn in 0 nodata
Endif
*-- Init retrieval arg for view
lidefid = pomain.idefid
select vwsuprvsn
requery()
When the users reported that the prior parents information is sometimes being displayed in the grid, I added the following code to form.unload:
If used(“vwsuprvsn”)
Use vwsuprvsn in 0
Endif
After making the above code change the users continued to report the “Ghosting” was still occuring, so I installed VFP6 on one of their machines and tried to reproduce this behavior in debug mode. I was unable to reproduce the “Ghosting”.
Here is the weird thing. The “Ghosting” has since disappeared on the users machine that VFP6 was installed on.
Thanks in advance or I hope this helps!
[STS]
:>