Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh of grid sometimes fails
Message
From
14/06/2021 15:58:20
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
11/06/2021 17:51:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01677764
Message ID:
01681197
Views:
107
Likes (1)
>>I wanted to follow up on this again - if you don't mind explaining further, it seems really odd to set focus to some other object offscreen and then setting it back - what was the reasoning behind changing the focus? Does this force VFP to refresh the grid?

Hi Albert,

This was all done years back, so recollection shaky- but it was to do with resequencing or refreshing after recno() change while the grid has focus. I recall that the grid could go "blank" after a drag-drop meaning no visible content intermittently, or selected row might jump despite explicit GO to maintain current record, or various other anomalies especially if you need to SCAN or locate in the recordsource whenever edits are made. Moving focus elsewhere and then restoring after everything finished, seems to have prevented these glitches. This doesn't seem to be reported by others but if grid refresh anomalies are experienced, losing and restoring focus may be a very low-cost experiment/remedy.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform