2.50b 2.60 2.60a 3.00 | 2.50b
WINDOWS | MACINTOSH
kbprg kbbuglist kbfixlist kbtool kberrmsg
The information in this article applies to:
- Microsoft Visual FoxPro for Windows, version 3.0
- Microsoft FoxPro for Windows, versions 2.5b, 2.6, 2.6a
- Microsoft FoxPro for Macintosh, version 2.5b
SYMPTOMS
In a FoxPro for Windows .EXE file, untransported FoxPro for MS-DOS reports
will cause an "Internal Consistency Error" message when the report is being
previewed and the horizontal scroll bar is clicked.
RESOLUTION
Transport the report to the current platform.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem has been fixed in
Visual FoxPro 5.0 for Windows.
MORE INFORMATION
Steps to Reproduce Problem
- At the MS-DOS prompt, type the following commands:
C:
CD\
MD rpt_test
- Start FoxPro 2.0 or 2.5x for MS-DOS.
- Create a table with one memo field and populate the field with data.
In FoxPro for MS-DOS, type the following commands in the Command
window:
SET DEFAULT TO c:\rpt_test
CREATE TABLE test_tbl (field1 M)
INSERT INTO test_tbl (field1);
VALUES (REPLICATE('W',500))
CREATE REPORT test_rpt.frx
- From the Report menu, choose Page Layout. In the Page Layout dialog
box, set the right margin column to 200.
NOTE: Setting the Right margin column to 200 is not necessary to
generate the error. However, it guarantees that the Preview mode will
display a horizontal scroll bar using video drivers with resolutions
up to 1024 x 768.
- From the Report menu, choose Quick Report, and choose the OK button to
create a quick report.
- Move the mouse cursor to the right edge of TEST_TBL.FIELD1 and hold
down the CTRL key. Drag the mouse to the right edge of the report. You
probably won't be able to see the right edge of the report form by
default. However, when the mouse is moved to the right edge of the
report, the report will scroll until the far edge is reached.
- Save the report. When prompted to save the environment, choose Yes.
- Quit FoxPro for MS-DOS and start FoxPro for Windows.
- Type the following commands in the Command window:
SET DEFAULT TO c:\rpt_test
CREATE PROJECT test_app
MODIFY COMMAND main.prg
- Enter the following line of code in MAIN.PRG. Then save and close
MAIN.PRG.
REPORT FORM test_rpt PREVIEW ENVIRONMENT
- Add MAIN.PRG to the TEST_APP project by choosing the Add button.
Choose the Build button.
- In the Build Option dialog box, select the Build Executable radio
button. Then choose the OK button. Accept the defaults, and choose the
Build button.
- After the build process has been completed, quit FoxPro for Windows.
- Go to Program Manager and choose Run from the File menu. In the Command
Line field, type the following, and then choose OK:
c:\rpt_test\test_app.exe
- When the Page Preview window appears, click the horizontal scroll bar
at the bottom of the window.
The error message appears, followed by a general protection (GP) fault.
|