Microsoft KB Archive/108632

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 10:40, 20 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, and 2.5b
  • Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, and 2.5b

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
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.