PRB: Extra Menu Pad Added if Modal Screen Called 31 Times (175983)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft FoxPro for Windows 2.5
- Microsoft FoxPro for Windows 2.5a
- Microsoft FoxPro for Windows 2.5b
- Microsoft FoxPro for Windows 2.6
- Microsoft FoxPro for Windows 2.6a
This article was previously published under Q175983 SYMPTOMS
In Visual FoxPro for Windows or in FoxPro for Windows 2.x, specific
circumstances make an additional menu pad appear, that causes unpredictable
problems if the menu pad is selected.
The additional menu pad is a duplicate of the next-to-last menu pad.
All of the following circumstances have been noted to exist when this
condition occurs:
- Menu pads have a SKIP FOR condition to disable them.
- More than six menu pads with five characters in each pad are required.
- A MODAL screen is being displayed when the extra menu pad appears.
- The problem occurs only if a screen is activated by a READ MODAL that
is being called from within a DO WHILE loop.
- The extra menu pad appears on the 31st time the MODAL screen is called.
- If you exit the program, without exiting FoxPro, and then rerun
the program, the number of times that the MODAL screen must be called
before the extra menu pad is displayed decrements by one. Then, during
this second running of the program, the extra menu pad appears during
the 30th appearance of the MODAL screen. In a multi-user environment,
this creates a random appearance of the extra menu pad.
This problem does not occur in FoxPro for DOS.
CAUSE
This behavior appears to be caused by a combination of the looping of the
MODAL READ (screen) and the SKIP FOR conditions on the menu pads.
RESOLUTION
A workaround is to call the Menu.mpr program again at the end of the DO
loop, so that the last line of code in the Main.prg before the ENDDO is:
DO Testmnu.mpr
This additional calling of the menu has the effect of re-setting whatever
internal counter is causing the extra menu to appear on the 31st run of the
MODAL screen. However, in a multi-user environment this workaround may not
prevent the behavior.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/10/2003 |
---|
Keywords: | kbprb KB175983 kbAudDeveloper |
---|
|