How to Coordinate Browse Windows with Screens

ID: Q108632

2.50 2.50a 2.50b | 2.50 2.50a 2.50b

WINDOWS          | MS-DOS
kbprg kbdocerr

The information in this article applies to:

Page D2-96 of the FoxPro for Windows "Developer's Guide" and page D2-90 of the FoxPro for MS-DOS "Developer?s Guide" give samples for coordinating Browse windows with screens but omits the SAVE clause in the example. If the optional BROWSE parameter SAVE is omitted, the Browse window will close as soon as any other object is clicked.

The code example should be changed to read as follows:

   IF NOT WVISIBLE("Client List")
      BROWSE NORMAL NOWAIT NODELETE LAST TITLE "Client List" ;
         NOAPPEND NOMENU SAVE FIELDS company ;
         WHEN showgets()
   ENDIF

   IF NOT WVISIBLE("Account Details")
      SELECT details
         BROWSE NORMAL NOWAIT NODELETE LAST TITLE "Client List" ;
            NOAPPEND NOMENU SAVE  ;
            FIELDS ;
            Trans_type:10, ;
            Trans_date:10, ;
            Amt:7,Service
      SELECT clients
   ENDIF

Additional reference words: FoxDos FoxWin 2.50 2.50a 2.50b docerr mouse read KBCategory: kbprg kbdocerr KBSubcategory: FxprgBrowse
Keywords          : FxprgBrowse 
Version           : 2.50 2.50a 2.50b | 2.50 2.50a 2.
Platform          : MS-DOS WINDOWS

Last Reviewed: May 1, 1996