Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No Parameters Statement found error
Message
De
29/04/2006 05:39:34
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01117756
Message ID:
01117775
Vues:
14
>After compiling to an EXE, I keep getting an error when I run the EXE for my client. The error is "No Parameters statement found". I looked at my code and there is indeed an LPARAMETERS statement. So, I changed it to PARAMETERS, dropping the leading L. No difference at all!
>
>Why is it that this error ccomes up? The Parameters statement is in my oApp.DO() function. It is called as shown immediately below: (THIS MAKES NO SENSE AT ALL.)
>
>
>lcDefDataLoc = CURDIR()	&& + "DATA\"
>oApp = CREATEOBJECT("cc_AppObject")		&& Create the application object.
>IF VARTYPE(oApp) = "O"
>	oApp.DO("Gemini Plastics Quote System", lcDefDataLoc)	&& Calls the menu and sets up the READ EVENTS wait state.
>	RELEASE oApp	&& After a Clear Events, release the object, oApp.
>	SET RESOURCE ON
>	SET SYSMENU TO DEFAULT	&& 03/30/2006 Cecil.
>	SET HELP TO		&& Cecil Champenois 08/23/2005.
>ELSE
>	MESSAGEBOX("Problem loading application...")
>	QUIT
>ENDIF
>
>
>
>PARAMETERS tcNameSystem AS Character, tcDefDataLoc AS Character
>* tcDefDataLoc, tcDefaultLoc, tcDefDLLLoc, tcDefAppLoc
>* This is the DO procedure in the oApp Application Object.
>WITH This
>	Local lcVersion, lcFinalVersion
>	lcVersion = ALLTRIM(STR(VERSION(5)))	&& Find out the VFP version number.
>	.cVFPVersion = "   [VFP Version " + ;
>					LEFT(lcVersion,1) + "." + ;
>					SUBSTR(lcVersion,2,2) + "]"
>	.cDefDataLoc = tcDefDataLoc		&& DEFAULT DATA Path.
>...
>
Cecil,
I would continue with laparameters.
Might it be that lparameters is not the first executable line?
Might it be that oApp is not created from the class you think?
Might it be that actual error is not there (another call before reaching there)?

From your code what I understand is cc_AppObject is defined directly in main program.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform