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:
00215407
Views:
38
>Matt,
>There are two things you can do here...
>
>1. Make SETUP.PRG your projects 'main' file. Setup.prg accepts tuParameter and assigns it to a global variable guParameter. Beware this global is released after goApp is initialized, so you have to assign or act on guParameter in the Init of your application class.
>
>2. Modify your Main.prg as follows. (As Barbara says, Main is specific to each application NOT the framework...)
>
>LPARAMETERS xAppParam
>#INCLUDE 'INCLUDE\APPINCL.H'
>DO COMMONPATH\PROGS\Setup with xAppParam
>
>*******
>That will pass the paramater from Main to Setup... which will also allow you to use your parmeters when you are running the ap with DO MAIN at the command line.
>
>BOb

Bob,

Thanks!

Mat
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Previous
Reply
Map
View

Click here to load this message in the networking platform