BUG: SKIP Produces Unexpected ResultsLast reviewed: June 27, 1995Article ID: Q123032 |
The information in this article applies to:
SYMPTOMSWhen you use the SKIP clause on a BAR of a POPUP, FoxPro for Windows disables the menu choice but still displays the disabled choice and allows the disabled choice to be selected.
RESOLUTIONUse an IF _WINDOWS clause to bracket the code. Then define the POPUP and BARs without the SKIP option.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe SKIP clause does not work in FoxPro for Windows but does work as documented in FoxPro for MS-DOS. For example, the following code works correctly in FoxPro for MS-DOS but not in FoxPro for Windows:
DEFINE POPUP CAmenu FROM 5,23 TO 23,53 DEFINE BAR 1 OF CAmenu PROMPT " Main Menu" SKIP DEFINE BAR 2 OF CAmenu PROMPT "-----------------------------" SKIP DEFINE BAR 3 OF CAmenu PROMPT " Application, Inquiry, HSQ" ACTIVATE POPUP CAmenu Code to Reproduce ProblemRun the following code in FoxPro for Windows:
DEFINE POPUP CAmenu FROM 5,23 TO 23,53 DEFINE BAR 1 OF CAmenu PROMPT " Main Menu" SKIP DEFINE BAR 2 OF CAmenu PROMPT "-----------------------------" SKIP DEFINE BAR 3 OF CAmenu PROMPT " Application, Inquiry, HSQ" ACTIVATE POPUP Camenu ON SELECTION BAR 1 WAIT WINDOW 'Bar 1' ON SELECTION BAR 2 WAIT WINDOW 'Bar 2' ON SELECTION BAR 3 WAIT WINDOW 'Bar 3'Even though you can select Bars 1 and 2 by using the cursor keys, no WAIT WINDOW appears for them.
|
Additional reference words: FoxWin 2.60 buglist2.60 disable prompt
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |