Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to close a Browse (programmatically)?
Message
From
24/02/2004 11:30:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/02/2004 16:33:38
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00879763
Message ID:
00880332
Views:
29
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform