General information
Category:
Visual FoxPro Toolkit for .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.)
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