Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling an exe with parameters
Message
 
 
To
14/01/2002 11:23:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00604354
Message ID:
00604706
Views:
28
Shevy,

You can not pass parameters into a Form/Formset that is marked as the main in a project. This is because behind the scenes in this case VFP is creating an implicit main.prg for you.

You will have to create a main.prg and use it to simply pass the parameters to the form. The form.Init() method will recieve the passed parameters.
* main.prg
lparameters ...
do form ... with ...
>Thanks. but the main program of the exe is a form. so the parameter list is in the formset init - is that the proper place? then why am i getting the error?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform