Article ID: 114480
Article Last Modified on 5/6/2003
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft Visual FoxPro 3.0b Standard Edition
- Microsoft Visual FoxPro 5.0 Standard Edition
- Microsoft Visual FoxPro 5.0a
- Microsoft Visual FoxPro 6.0 Professional Edition
- Microsoft FoxPro 2.6 Standard Edition
- Microsoft FoxPro 2.6a Standard Edition
- Microsoft FoxPro 2.6 for MS-DOS
- Microsoft FoxPro 2.6a Standard Edition
This article was previously published under Q114480
SYMPTOMS
The value returned by SET('MEMOWIDTH') changes from 50 to 80 when FoxPro executes the SET COMPATIBLE DB4 or SET COMPATIBLE ON command.
CAUSE
The SET COMPATIBLE DB4 and SET COMPATIBLE ON commands will change the default value of MEMOWIDTH from 50 to 80. However, the command SET COMPATIBLE OFF does not restore MEMOWIDTH to its original value of 50. This problem will therefore occur when the SET COMPATIBLE DB4 or SET COMPATIBLE ON command is issued.
This problem also occurs when a program is executed through the Catalog Manager and the dBASE Program check box is selected. When the Catalog Manager executes a program as a dBASE program, it issues a SET COMPATIBLE ON command, which causes the value of MEMOWIDTH to change from 50 to 80 as described above.
RESOLUTION
To restore MEMOWIDTH to the default value of 50, issue the following command after the SET COMPATIBLE DB4 or SET COMPATIBLE ON command has been executed:
SET MEMOWIDTH TO 50
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
MORE INFORMATION
Steps to Reproduce Behavior
In the Command window, issue this command:
? SET('MEMOWIDTH')
Note that the value 50 is returned.
In the Command window, issue these commands:
SET COMPATIBLE ON<BR/> ? SET('MEMOWIDTH')
Note that the value 80 is returned.
In the Command window, issue these commands:
SET COMPATIBLE OFF<BR/> ? SET('MEMOWIDTH')
Note that the value 80 is returned; MEMOWIDTH is not restored to 50.
Additional query words: catman kbFP250 kbFP260 kbvfp300 kbvfp500 kbvfp600
Keywords: kbbug kb3rdparty KB114480