Microsoft KB Archive/101017

{| = FIX: Message Does Not Display If Status Bar Is Off =
 * width="100%"|

ID: Q101017

2.50 WINDOWS kbprg kbfixlist kbbuglist

The information in this article applies to:


 * Microsoft FoxPro for Windows, version 2.5

SYMPTOMS
The second paragraph on page L3-57 of the FoxPro for Windows "Language Reference" manual says:

In FoxPro for Windows, the message is placed in the Windows-style status bar. If the Windows-style status bar has been turned off with SET STATUS BAR OFF, the message is centered on the last line of the main FoxPro Window. However, if the Window-style status bar has been turned off with SET STATUS BAR OFF, the message will not be centered on the last line of the main FoxPro Window.

CAUSE
In FoxPro for Windows, the MESSAGE clause does nothing if the SET STATUS BAR OFF command has been issued. In FoxPro for MS-DOS, the MESSAGE string is displayed in the center on the last line of the main FoxPro window.

STATUS
Microsoft has confirmed this to be a problem in FoxPro version 2.5 for Windows. This problem was corrected in FoxPro version 2.5a for Windows.

MORE INFORMATION

Steps to Reproduce Problem
NOTE: Perform the following procedure in FoxPro for Windows.

1. From the File menu, choose Open, select Program, and then choose

New. 2. Type in the following program: SET STATUS BAR OFF @ 2,5 GET mchoice FUNCTION '*C Test' default .T. MESSAGE ; 'THIS IS A TEST' READ CYCLE SET STATUS BAR ON 3. From the File menu, choose Save. 4. Save the file as TEST.PRG.

5. From the File menu, choose Close.

6. In the Command window, type the following:

DO TEST.PRG Note that nothing is displayed in the center at the bottom of the FoxPro window. Repeat steps 1-6 in FoxPro for MS-DOS, and note that in the center at the bottom of the window "THIS IS A TEST" is displayed. Additional reference words: FoxWin 2.50 FAR buglist2.50 fixlist2.50a KBCategory: kbprg kbfixlist kbbuglist KBSubcategory: FxprgGeneral Solution Type : kbfix
 * }