Add parameters using a generic method
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Syntax
You can use the following generic method on the
Progress.Open4GL.Proxy.ParamArray class to set the parameters in the
ParamArray:
|
- position
-
Specifies a 0-based index indicating the parameter position.
- value
-
Specifies a variable of the appropriate
Objectdata type that contains the value for the parameter, ornullfor anOUTPUTparameter. - mode
-
Specifies the ABL mode (passing direction) of the parameter. This can be one of the following constant values:
-
ParamArrayMode.INPUT -
ParamArrayMode.INPUT_OUTPUT -
ParamArrayMode.OUTPUT
-
- proType
-
Specifies the ABL data type of the parameter indicated by a class constant defined in the
Progress.Open4GL.Parameterclass, as shown in the following table.Table 1. ABL parameter data types for the OpenAPI ABL data type Progress.Open4GL.Parameter class constant CHARACTERPRO_CHARACTERCOM-HANDLEPRO_COMHANDLEDATASETPRO_DATASETDATASET-HANDLEPRO_ DATASETHANDLEDATEPRO_DATEDATETIMEPRO_DATETIMEDATETIME-TZPRO_DATETIMETZDECIMALPRO_DECIMALHANDLEPRO_WIDGETHANDLEINT64PRO_INT64INTEGERPRO_INTEGERLOGICALPRO_LOGICALLONGCHARPRO_LONGCHARMEMPTRPRO_MEMPTRRAWPRO_RAWRECIDPRO_RECIDROWIDPRO_ROWIDTEMP-TABLEPRO_TEMPTABLETABLE-HANDLEPRO_TABLEHANDLEWIDGET-HANDLEPRO_WIDGETHANDLE - extentValue
-
Specifies the extent of an array, 0 or 1 for a scalar value.
- metaData
- Specifies the schema for ProDataSet or temp-table parameters, where
proType is one of the following:
Parameter.PRO_DATASETParameter.PRO_DATASETHANDLEParameter.PRO_TEMPTABLEParameter.PRO_TABLEHANDLEThe value can be specified using one of the following classes:
TempTableMetaData— Defines the schema information for temp-table parameters or temp-tables in a ProDataSet. For more information on defining this schema, see Define the schema for a temp-table parameter.ProDataSetMetaData— Defines the schema information for ProDataSet parameters. For more information on defining the schema for ProDataSet parameters, see Define the schema for a ProDataSet parameter.
When mode is
ParamArrayMode.OUTPUTand proType isParameter.PRO_DATASETHANDLEorParameter.PRO_TABLEHANDLE(passing a dynamic ProDataSet or temp-table parameter), you can set this parameter tonull.