Try OpenEdge Now
skip to main content
.NET Open Clients
Using the Open Client .NET OpenAPI to Directly Access the AppServer : Setting up parameters and return types
 

Setting up parameters and return types

Before running an application service procedure or user-defined function, it might require parameters that you must pass. Before passing the parameters, you must set them up in two basic steps using the .NET OpenAPI.
set up parameters for passing to an application service procedure or function and to define return types for returning function values:
1. Create a variable for each parameter.
2. Add each variable to a parameter array as required for the procedure or function you are calling.
The following sections describe how to complete these steps:
*Creatingvariables for parameters.
*Settingup a parameter array.
*Adding parameters using data type-specific methods.
*Adding parameters using a generic method.
*Defining the schema for a temp-table parameter.
*Defining the schema for a ProDataSet parameter.
*Defining the return type for a user-defined function.
* Creating variables for parameters
* Setting up a parameter array
* Adding parameters using data type-specific methods
* Adding parameters using a generic method
* Defining the schema for a temp-table parameter
* Defining the schema for a ProDataSet parameter
* Defining the return type for a user-defined function