Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I send a parameter to main program?
Message
De
04/02/1999 20:21:34
 
 
À
04/02/1999 18:08:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00184098
Message ID:
00184158
Vues:
17
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform