>I don't see any that will close the grid.
>
>GRIDOBJECT.DESTROY() has no effect. I assme that is just an event that fires when the GRID is destroyed.
It is, and I've even tried to release the variable which holds the reference to it - nothing happens. There's some old behavior about browse - it is actually a window on top of a window, so to close a browse you have to close the underlying window, and the grid object has no reference to that (automatically created) window.
However, this works:
browse title (lcTitle)
release window (lcTitle)
By just giving it a caption of your choice, you're getting a handle on the window object - at least using w* functions. The grid object can be manipulated via variable specified in the Name clause.
Note that all I know about programmatically handled browses comes from FPD2.6, but relying on VFP's compatibility didn't fail much at all.