Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Workaround for a bug
Message
From
14/06/2001 14:36:53
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00519598
Message ID:
00519621
Views:
16
>>We have found a small bug in Visual FoxPro when the cursor sits on a column of a grid and when we do a refresh. Occasionnaly, the grid won't be refreshed. When that happens, and that only happens occasionnaly, we just put the cursor on another control, outside of the grid, and the next refresh will be ok.
>>
>>We would like to update the framework to put the cursor out of a grid control, if we are on one of them, when we navigate or save for example. What would be the best approach for that? There is no SetFocus() at the form level. So, we need to rely on something else that will always work no matter what type of form we have.
>
>Does PRB: Grid Not Refreshing Displaying a Cursor From Query help?

That solves it. However, when assigning the recordsource to itself, I loose all my settings.

But, the bug we have is not related to that MSKB explanation. We have it under a strange simulation. Basically, we have views. As long as I don't do a save, I'm ok. I can navigate from records to records and all my grids are refreshed ok. That works even if the cursor sits in one of them. If I do a save, all is still ok. I can have a perfect refresh everywhere. However, as soon as I do a save combined with a go bottom, go top and navigate to my record, if the cursor was sitting on the grid, it won't be refreshed. To solve it, I can put the cursor any other places and navigate back and forth and it'll work.

I also need a workaround that I can apply in my baseform class. Even if the assignation to the recordsource to itself wouldn't make me loose my settings, I would still need to way to make that generic.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform