Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return value from VFP SP to ASP.NET?
Message
From
02/07/2004 13:14:58
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00918798
Message ID:
00920218
Views:
29
Dmitry-

>I am using ExecuteNonQuery(). Are you suggesting that I can call to SP using ExecuteScalar() and return a value?

Yep. That should do the trick for you. ExecuteNonQuery will always return the number of rows affected. ExecuteScalar will return the result of the Stored Procedure.

For example, I have a stored procedure that creates a record and returns the ID of the record similar to the help example,
Int32 id = (int32) ExecuteScalar();
HTH.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform