DEFINE BAR ... SKIP Behavior Differs Between Platforms

Last reviewed: June 27, 1995
Article ID: Q115106
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, 2.5b, 2.6
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6
  • Microsoft FoxPro for Macintosh, versions 2.5b, 2.5c

SUMMARY

The SKIP clause, when used in conjunction with the DEFINE POPUP and DEFINE BAR commands to create menu options, will work differently in FoxPro for Windows and Macintosh than it does in FoxPro for MS-DOS.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a program with the following sample code:

          ***** Start of code *****
          IF _WINDOWS OR _MAC
    
             SET STATUS BAR ON     && FoxPro for Win or Mac to see messages
          ELSE
              SET STATUS ON        && Turn on FoxPro for MS-DOS status bar
          ENDIF
          DEFINE POPUP test FROM 1,1 TO 10,30
          DEFINE BAR 1 OF test PROMPT "Main Menu" SKIP MESSAGE "Main Menu"
          DEFINE BAR 2 OF test PROMPT "Bar 1" SKIP MESSAGE "Bar 1"
          DEFINE BAR 3 OF test PROMPT "Bar 2" MESSAGE "Bar 2"
          ACTIVATE POPUP test
          ****** End of code ******
    
    

  2. Run this program on each platform. Use the arrow keys to attempt to move the highlight bar through the menu bars.

In FoxPro for MS-DOS, the highlight bar will not move onto a bar that has the SKIP clause on it. The MESSAGE will not be displayed either.

In FoxPro for Windows and FoxPro for Macintosh, the highlight bar will move through all bars in the popup and the message will be displayed on the status bar, but no action can be taken on the disabled bars.

REFERENCES

"Language Reference," version 2.5 (MS-DOS and Windows), pages L3-393 to L3-400, L3-416 to L3-426

"Language Reference," version 2.5b (Macintosh), pages 336-342, 352-361

"Commands & Functions," version 2.0 (MS-DOS), pages C3-281 to C3-287, C2-300 to C2-308


Additional reference words: FoxMac FoxDos FoxWin 2.00 2.50 2.50a 2.50 2.60
2.50c
KBCategory: kbprg
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.