Microsoft KB Archive/115106

{| = DEFINE BAR ... SKIP Behavior Differs Between Platforms =
 * width="100%"|

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.

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.