Hi,
This is my second attempt to get an answer to this - I created a generic service calling procedure to run Progress procedures from .NET clients. It uses an INPUT-OUTPUT DATASET-HANDLE parameter to pass datasets in and return them from the called service procedures using the same parameter. I need to know how to call this procedure from a C#.NET client. The C# language doesn't have a single parameter type that passes an input-output parameter by value. Will the following work or will it produce a parameter mismatch error...
1. C#.NET Call to return a dataset:
System.Data.DataSet dsMyData;
appObj.callService(out dsMyData);
2 C#.NET Call to pass in a dataset (assume it's been defined):
appObj.callService(dsMyData);
3. Progress ProxyGen Parameter Definition in callService.p:
DEFINE INPUT-OUTPUT PARAMETER DATASET-HANDLE iophDataSet.
Dave
Hi Dave,
I am sorry I did not see your original posting.
In C# you should use the "ref" parameter modifier to call an input-output ABL parameter.
System.Data.DataSet dsMyData;
appObj.callService(ref dsMyData);
-Shelley