Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Main Form Startup EXE Parameters?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00668891
Message ID:
00668940
Views:
18
>I have an app where the "main" of the .exe is a form. In the form's Load method, I have
>
>Parameters cParm1, cParm2, cParm3
>
>The exe compiles fine, but when I run it from the command line with parameters passed, I get the error "No parameter statement is found".
>
>This worked fine with a .prg as the main, where am I supposed to trap the parms in a form like this?
>
>Thanks.

Steve, I think both DavidF and RicardoFR are right, when taken together. You'll have make a prg, make it main, catch the parameters, and pass the parameters to the form. In that form you have to move the lparameter statement from the Load() to the Init() method.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform