Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return value from VFP SP to ASP.NET?
Message
 
 
À
02/07/2004 13:14:58
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00918798
Message ID:
00920334
Vues:
24
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform