2.50 2.50b
MS-DOS
kbprg kbfixlist kbbuglist kberrmsg
The information in this article applies to:
- Microsoft FoxPro for MS-DOS, versions 2.5, 2.5b
SYMPTOMS
If an application is generated with FoxApp, when the application is
executed, an "Invalid Subscript Reference" error is returned.
WORKAROUND
To work around this problem, do the following:
- From the File menu, choose Open, and open the FOXAPP.PJX file,
which is located in the FOXPRO25\FOXAPP subdirectory.
- From the File menu, choose Open, and open the PRTOPTS.SCX file,
which is located in the FOXPRO25\FOXAPP\SCREENS subdirectory.
- From the Screen menu, choose Screen Layout.
- Under Screen Code, select Setup.
- In the PRTOPTS Setup window, add an asterisk(*) to the beginning of
the following line:
SELECT ((juststem(dbfname)))
- Add the following two lines to the beginning of the Setup code:
xxxzzz=juststem(dbfname)
SELECT (xxxzzz)
- Close the PRTOPTS Setup window.
- From the File menu, choose Save.
- Rebuild FOXAPP.APP and make sure it is placed in the FOXPRO25
directory.
The next time an .APP file is built using FoxApp, the error "Invalid
subscript reference" will not occur.
STATUS
Microsoft has confirmed this to be a problem in FoxPro version 2.5.
This problem was corrected in FoxPro version 2.5a, but it reoccurred in
FoxPro version 2.5b. It was corrected again in version 2.6.
MORE INFORMATION
Steps to Reproduce Problem
- Generate an application with FoxApp. For more information on how to
generate applications with FoxApp, see Chapter 16, "Building
Applications with FoxApp," in the version 2.5 "Developer's Guide."
- Use the DO command to execute the application.
- From the Application menu, choose Report.
- Select the Report dialog box. This works as expected.
- From the System menu, choose Quit to exit the application.
- From the File menu, choose Quit to exit FoxPro for MS-DOS.
- Restart FoxPro for MS-DOS.
- Use the DO command to execute the application again.
- From the Application menu, choose Report.
The following error is displayed:
line no: 60
program: prtopts
error: invalid subscript reference
source: SELECT ((juststem(dbfname)))
|