Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call VFP .exe and library from C#
Message
Information générale
Forum:
ASP.NET
Catégorie:
Visual FoxPro Toolkit pour .NET
Divers
Thread ID:
00772152
Message ID:
00773769
Vues:
8
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
Fil
Voir

Click here to load this message in the networking platform