Microsoft KB Archive/95666

{| = Incorrect Program Example for PUSH POPUP Command =
 * width="100%"|

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 &quot;Language Reference&quot; manual is executed, the &quot;popexam&quot; 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 &quot;FoxPro Language Reference&quot; 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 &quot;Language Reference&quot; 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
 * }