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 04:31:42
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00918798
Message ID:
00920020
Views:
19
Hi,

>>Do you mind sharing how you return a variable from VFP SP to .NET?

VFP:
PROCEDURE SayHello() as String
RETURN "Hello"
ENDPROC
.NET:
' Assume connection created
Dim oCmd AS New OleDB.OleDBCommand
Dim cReturn as String=""
With oCmd
  .Connection = oConn
  .CommandType = CommandType.StoredProcedure
  .CommandText = "SayHello"
  cReturn = .ExecuteScalar()
End With
'etc
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform