Information générale
Catégorie:
Visual FoxPro Toolkit pour .NET
Thanks for your input! I had previously used System.Diagnostics.Process() to call a VB exe app. and it worked well.
But, in this case, I am trying to execute VFP app #1 that is currently called from VFP app #2.
#2 sets a ClassLib first, and then calls #1 with 2 parameters.
#2 can save property values from #1.
Any ideas on how I can set the VFP Classlib from .Net?
Here's the code in #2 calling app:
SET CLASSLIB TO &lcLib IN BookOut.EXE ADDITIVE
>
>loBookOut = CREATEOBJECT(lcLib)
>
>IF TYPE("loBookOut") = "O"
>
> WITH loBookOut
>
> .iAccountid = vp_AccountID
>
> .cRegion = "Texas"
>
> DO BookOut.exe WITH loBookOut
>
> IF .lSaveSelected = .T.
>
> SELECT rv_AutoM
>
> REPLACE rv_AutoM.cVIN WITH .cVIN,;
>
> rv_AutoM.nYear WITH .iYear,;
> rv_AutoM.cMake WITH .cMake,;
> rv_AutoM.cModel WITH .cSeries,;
> rv_AutoM.nMileage WITH .iMileage,;
> rv_AutoM.nBookOutValue WITH .iAdjustedTrade,;
> rv_AutoM.nInitialBookOutValue WITH .iAdjustedTrade
>
> TABLEUPDATE(.T.)
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement