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

Thank you so much for the suggestion. I will try using ExecuteScalar().

>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.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform