Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing command line parameters
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00581174
Message ID:
00581194
Vues:
16
You can pass only character type parameters into exe.
! /n C:\work\acct\acct05.exe DTOC(prmstartdate) DTOC(prmenddate)
In exe you'll have to convert it back to date using CTOD().

>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
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform