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 : Adding parameters using data type-specific methods
 

Adding parameters using data type-specific methods

You can set each parameter using one of the methods on the Progress.Open4GL.Proxy.ParamArray class that is specified for the corresponding ABL data type. Data types that are mapped to supported value types in .NET (System.Boolean, System.Decimal, System.Int32, System.Int64, and System.DateTime) have the following three sets of methods:
*One for the value type, which cannot be set to the ABL Unknown value (?) (null in .NET)
*One for a corresponding .NET nullable value type that can accept the ABL Unknown value (?).
*One for a corresponding OpenEdge type-holder class in the Progress.Open4GL namespace that can accept the ABL Unknown value (?) (supported for backward compatibility only).
Methods to add arrays of each data type are also provided.
For more information on the use of .NET nullable types and OpenEdge type-holder classes, see Unknownvalue (?) as a parameter.
* General syntax for add parameter methods
* Syntax summaries of all data type-specific add parameter methods
* CHARACTER
* COM-HANDLE
* DATASET and DATASET-HANDLE
* DATE
* DATETIME
* DATETIME-TZ
* DECIMAL
* HANDLE
* INT64
* INTEGER
* LOGICAL
* LONGCHAR
* MEMPTR
* RAW
* RECID
* ROWID
* TABLE and TABLE-HANDLE