Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No PARAMETER statement is found
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00214951
Message ID:
00215531
Views:
29
Mat,

>In the developer's guide, it says you can pass parameters to the application. I have attempted this, but keep getting the error message "No PARAMETER statement is found". There is an LPARAMETERS statement is setup.prg, but it seems like main.prg is called first and this is where the error is being generated. I have tried to run this with a compiled .exe. What am I missing?>

Here's the history...

As you know, Main.prg is application-specific. You most likely created your application a while back using an older version of the Framework. In later versions of MM, I automatically placed an "LPARAMETERS tuParameter" statement in the Main.prg file that is automatically created by QuickStart.

Since this doesn't exist in yours, you can simply add the following line to your Main.prg:

LPARAMETERS tuParameter

DO [COMMONPATH\PROGS\Setup] WITH tuParameter

As you know, Setup.prg is a common Framework file, and it *does* have an LPARAMETERS statement in it to accept the value of tuParameter.

P.S. I've put a love note to this effect in the Developer's Guide for posterity!

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform