Incorrect Program Example for PUSH POPUP Command

Last reviewed: June 27, 1995
Article ID: Q95666
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, version 2.5
  • Microsoft FoxPro for Windows, version 2.5

SYMPTOMS

When the program example for PUSH POPUP command on page L3-768 of the "Language Reference" manual is executed, the "popexam" popup flashes on the screen very quickly and then the popup disappears. This program example does not pause to demonstrate how PUSH POPUP works.

CAUSE

The program example for the PUSH POPUP command in the "FoxPro Language Reference" is missing several WAIT commands. The WAIT commands allow the program to pause to demonstrate how PUSH POPUP works during program execution.

RESOLUTION

To correct this problem, do the following:

  1. Copy the program example from Help for the POP POPUP command or refer to the program example in the "Language Reference" manual for the POP POPUP command. The POP POPUP command has the same program example as the PUSH POPUP command.

  2. Insert the following WAIT commands in the empty lines between the ACTIVATE POPUP and the RELEASE POPUP commands:

          DEFINE POPUP popexam FROM 5,5
    

          DEFINE BAR 1 OF popexam PROMPT 'One'
          DEFINE BAR 2 OF popexam PROMPT 'Two'
          DEFINE BAR 3 OF popexam PROMPT 'Three'
          DEFINE BAR 4 OF popexam PROMPT 'Four'
    

          ACTIVATE POPUP popexam NOWAIT
          PUSH POPUP popexam
          WAIT 'Popup pushed' WINDOW
          RELEASE BAR 2 OF popexam
          WAIT 'This is the modified Popup' WINDOW
          POP POPUP popexam
          WAIT 'Popup popped, original popup restored' WINDOW
          DEACTIVATE POPUP popexam
          RELEASE POPUP popexam
    


Additional reference words: FoxDos FoxWin 2.50 docerr example
KBCategory: kbprg kbdocerr
KBSubcategory: FxprgGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.