2nd Try - .NET Call Signature for INPUT-OUTPUT DATASET-HANDL

Posted by Admin on 24-Sep-2007 14:25

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

All Replies

Posted by Shelley Chase on 25-Sep-2007 04:25

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

This thread is closed