Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I send a parameter to main program?
Message
From
04/02/1999 20:21:34
 
 
To
04/02/1999 18:08:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00184098
Message ID:
00184158
Views:
18
>>I may be going about this all wrong...
>>
>>I have recently purchased SDT and I wanted to put in my main prg code that if a parameter is passed that I run the needupdate and update methods.
>>
>>I put a lparameter statement in my main program and from my development environment I can issue "do lsmain with "U"" and everything works great...Is there a way to do this from my clients site that has an executable. For example, LS.EXE -U?
>>
>>Thanks,
>>Paul
>
>Yes, if you run "Ls.Exe U" then "U" will go to LParameter.

Just to expand on your answer, parameters that start with - or / will be interpreted by Fox as it's own parameter, rather than a parameter to the application.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform