PRB: "No PARAMETER Statement Found" in .EXE FileID: Q111059 2.50 2.50a 2.50b | 2.00 2.50 2.50a 2.50b WINDOWS | MS-DOS kbprg kbprb The information in this article applies to:
SYMPTOMSWhen you are running an .exe file built with FoxPro, the following error message occurs when you try to execute a cross-tabulation: No PARAMETER statement found. NOTE: In FoxPro 2.0 for MS-DOS, the error that occurs is: File '' does notexist. CAUSEThe cross-tabulation program is being executed by referencing a variable that has an incorrect value. For example, DO (_genxtab) WITH "Query" when the variable _genxtab has not been initialized. RESOLUTIONSet the value of the variable being used before issuing the DO command. For example, _genxtab="GENXTAB.PRG" DO (_genxtab) WITH "Query" MORE INFORMATIONSteps to Reproduce Behavior1. Put the following commands into a program file called TEST.PRG: **This program uses the CUSTOMER.DBF file from the **\FOXPROW\TUTORIAL directory. ** SELECT Customer.ono, Customer.state, Customer.ytdpurch; FROM Customer; GROUP BY Customer.ono, Customer.state; ORDER BY Customer.ono, Customer.state; INTO CURSOR SYS(2015) DO (_GENXTAB) WITH 'Test' BROWSE NOMODIFY PREFERENCE Test 2. Type the following in the Command window: BUILD PROJECT test FROM Test.prg MODIFY PROJECT test 3. Open the project file and choose Build and then choose Build Executable. 4. Try to execute the .exe file outside FoxPro, either from the Windows Program Manager, or from the MS-DOS prompt if it is an .exe built with FoxPro for MS-DOS. The error message "No PARAMETER statement found" occurs. To correct this error, do the following: 1. Modify the program and make the following command the first line in the program: _GENXTAB="GENXTAB.PRG" 2. Type the following command in the Command window: BUILD PROJECT test FROM test.prg,genxtab.prg 3. Open the project and build the executable again. If you now run the executable file outside FoxPro, the cross-tabulation program will be run as expected. Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b xtab crosstab errmsg err msg KBCategory: kbprg kbprb KBSubcategory: FxprgBrowse Keywords : kberrmsg FxprgBrowse Version : MS-DOS:2.0,2.5,2.5a,2.5b; WINDOWS:2.5,2.5a,2.5b,2.6,2.6a Platform : MS-DOS WINDOWS |
Last Reviewed: November 24, 1998 |