Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return value from vfp stored procedures
Message
 
To
22/11/2002 17:19:17
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brazil
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00726053
Message ID:
00726057
Views:
12
This message has been marked as the solution to the initial question of the thread.
Hi Eugenio,

Here is some sample code to call a VFP Stored Procedure.
using System;
using System.Data;
using System.Data.OleDb;
OleDbConnection oConn = new OleDbConnection(cConnString);
try
  { oConn.Open(); }
catch(Exception oErr)
  { System.Windows.Forms.MessageBox.Show("\n" + oErr.Message + "\n"); }
System.Data.OleDb.OleDbCommand oCmd = new OleDbCommand("PutResult('MyParm1','MyParm2')",oConn);
string cRetVal = oCmd.ExecuteScalar().ToString();
>Is it possible to get the return value from a vfp stored procedure using the VFP OleDb Provider? How can I accomplish this?
>
>Thanks in advance.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform