Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command Line Parameter
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00645094
Message ID:
00645100
Views:
22
This message has been marked as the solution to the initial question of the thread.
>Hi folks!
>
>I was asked here at work to see if I could add a Command Line Parameter to be passed over to my VFP 6.0 app (example - pass over how many records for the app to leave after deleting the rest.)
>
>I am probably overlooking the obvious...
>
>Any ideas appreciated.
>
>Thanks!
>
>Tommy

You can add LAPRAMETERS to the main program to accept command line parameters.
* Main programm
LAPRAMETERS tcParam1, tcParam2
...

* command line

c:\mydir\myapp.exe 12345 abcd
Remember, that all parameters are passed in the EXE as strings. If you pass more than one parameter, you've to separate them with spaces.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform