>>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