>>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