Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass a parameter to an application
Message
From
23/10/1999 14:30:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/10/1999 10:35:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00280404
Message ID:
00280445
Views:
10
>>How do I pass a parameter to my main.prg of an application?
>>
>>I tried putting LPARAMETER... on the first line of the main.prg but it does not receive the parameter passed on the command line
>>
>>C:\myapp.exe myparameter
>>
>>
>>Thanks
>
>What does myparameter look like on the command line? You can't use - or / with it.


Just a space before the parameter. Remember all commandline parameters are passed as char. ie: This is a valid parameter passing :

myapp.exe 123 .t. test,this

* main.prg
lparameters p1, p2, p3
? type("p1"),p1 && "C", 123
? type("p2"),p2 && "C", .t.
? type("p3"),p3 && "C", test,this

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform