PRB: "No PARAMETER Statement Found" in .EXE File

Last reviewed: February 23, 1998
Article ID: Q111059
2.50 2.50a 2.50b | 2.00 2.50 2.50a 2.50b
WINDOWS          | MS-DOS
kbprg kberrmsg kbprb

The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6 and 2.6a
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, and 2.5b

SYMPTOMS

When 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.

CAUSE

The 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.

RESOLUTION

Set the value of the variable being used before issuing the DO command. For example,

   _genxtab="GENXTAB.PRG"
   DO (_genxtab) WITH "Query"


MORE INFORMATION

Steps to Reproduce Behavior

  1. 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 kberrmsg kbprb
KBSubcategory: FxprgBrowse
Keywords : FxprgBrowse kberrmsg kbprb kbprg
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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 23, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.