Microsoft KB Archive/122513

{| = PRB: Can't Close Browse Window That Has Associated Title =
 * width="100%"|

ID: Q122513

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5x, 2.6, 2.6a
 * Microsoft FoxPro for MS-DOS, versions 2.0, 2.5x, 2.6, 2.6a

SYMPTOMS
Attempting to release a Browse window that is executed as a "BROWSE WINDOW " command will not work as expected when the window definition referenced in the BROWSE statement has an associated title.

RESOLUTION
To get the Browse window to close, change the ON KEY LABEL command given in the More Informatino section of this article to this:

ON KEY LABEL ESCAPE RELEASE WINDOW "View Customers" Then press the ESC to close the Browse window.

STATUS
This behavior is by design.

MORE INFORMATION
The following code demonstrates this behavior. In it, a window definition is set up with a "TITLE" clause. The ON KEY LABEL ESC command attempts to release the defined window by its name, which will fail.

ON KEY LABEL ESCAPE RELEASE WINDOW custview ON KEY LABEL F12 Cancel

CLOSE ALL USE SYS(2004)+"\TUTORIAL\CUSTOMER" IN 1

DEFINE WINDOW custview FROM 0,0 TO 30,66 TITLE "View Customers" NONE FLOAT BROWSE WINDOW custview

The Browse window takes on the attributes of the defined Window for a "Tem- plate" and as such, is not the actual window. Other attributes that the Browse window takes on are the name of the title or, in the absence of a title, the table alias. The Browse window is not an actual window, but an image of the template window.

Additional reference words: FoxWin FoxDos 2.00 2.50 2.50a 2.50b 2.60 2.60a KBCategory: kbprg kbprb KBSubcategory: FxprgBrowse
 * }