I think that you need macro substitution to make it work
! /n C:\work\acct\acct05.exe &prmstartdate &prmenddate
>I think you should pass the parameters as strings as in:
>
>prmstartdate = dtoc(date()-15)
>prmenddate = dtoc(date())
>! /n C:\work\acct\acct05.exe prmstartdate prmenddate
>
>HTH
>
>>How do I pass a command line parameter to a Dos Foxpro 2.6 executable from Visual foxpro. The below code does not work.
>>
>>prmstartdate = date()-15
>>prmenddate = date()
>>! /n C:\work\acct\acct05.exe prmstartdate prmenddate
>>
>>Receiving program.
>>
>>Param prmstartdate, prmenddate
>>
>>
>>Problem is the values in the variables are displayed as prmstartdate and not the value.
>>
>>Any help is appreciated.
>>Thank you in advance
>>Joe Hendren
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only