PRB: SHOW WINDOW <Window Name> REFRESH with Browse Window

This article was previously published under Q95726
This article has been archived. It is offered "as is" and will no longer be updated.
SYMPTOMS
The error "Window <window name> has not been defined" occurs when theSHOW WINDOW <window name> REFRESH command is used to REFRESH a Browsewindow.
CAUSE
The window is being referenced by the incorrect name.
RESOLUTION
There are two ways to refresh a Browse window with the SHOW WINDOW<window name> REFRESH command. The first way is to use the TITLE namedefined by the BROWSE command:
   USE customer   BROWSE TITLE "My Browse"   SHOW WINDOW "My Browse" REFRESH  && Causes refresh				
If the Browse window was not defined with a TITLE, you can use thename of the database being browsed as the window name:
   USE customer   BROWSE   SHOW WINDOW customer REFRESH  && Causes refresh				
It does not matter how the BROWSE command was issued (whether in theBROWSE, BROWSE WINDOW, or BROWSE IN WINDOW commands) or if thewindow's title is the one that appears on the screen.
   USE CUSTOMER   DEFINE WINDOW browwind FROM 1,1 TO 23,79 TITLE "Window Title"   ACTIVATE WINDOW browwind   BROWSE IN WINDOW browwind TITLE "Browse Title"   SHOW WINDOW "Browse Title" REFRESH   && Causes refresh				
VFoxWin FoxDos FoxWin
Properties

Article ID: 95726 - Last Review: 02/28/2014 00:25:39 - Revision: 2.1

Microsoft Visual FoxPro 3.0 Standard Edition, Microsoft FoxPro 2.5b, Microsoft FoxPro 2.5a, Microsoft FoxPro 2.0, Microsoft FoxPro 2.5b for MS-DOS, Microsoft FoxPro 2.5a

  • kbnosurvey kbarchive KB95726
Feedback
has not been defined" occurs when the SHOW WINDOW REFRESH command is used to REFRESH a Browse window. " />
has not been defined" occurs when the SHOW WINDOW REFRESH command is used to REFRESH a Browse window. " />