Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clarification appreciated.
Message
From
13/07/2004 17:19:11
 
 
To
13/07/2004 15:33:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00923487
Message ID:
00923984
Views:
31
>Aleksey,
>
>>...I believe the proper test would be to run exactly the same .PRG through the provider from C# (connect to a folder, and execute the .PRG file as a procedure using its name without extension).
>
>Interesting. I didn't realize you could run a PRG from the provider.

Hi David,

Yes, you can:
LOCAL oConn as ADODB.Connection

TEXT TO cPRG NOSHOW
RETURN "Here is the result"	
ENDTEXT

STRTOFILE(cPRG,"c:\testPRG.prg")

oConn=CREATEOBJECT("ADODB.Connection")
oConn.Open("Provider=VFPOLEDB.1;Data Source=c:\")

oRS=oConn.Execute("testPRG",,4)
?oRS.Fields(0).Value

DELETE FILE c:\testPRG.prg
RETURN 
Thanks,
Aleksey.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform