SetParameter( ) method (Class)
Populates elements in a
Progress.Lang.ParameterList
object.Return type: LOGICAL
Access: PUBLIC
Applies to: Progress.Lang.ParameterList class
position
Identifies the one-based position that the parameter occupies in the routine signature. The AVM returns a run-time error ifposition
is greater than the number of parameters defined for aProgress.Lang.ParameterList
object, which was set either during instantiation (passed as input to the constructor) or by setting the NumParameters attribute.data-type
A CHARACTER expression indicating the target parameter type. This is generally the data type that the invoked method expects, but can also be any of the extended .NET data types, such as SHORT, BYTE, SINGLE-CHARACTER, and so on.If the parameter of the method to be called is type DECIMAL, thendata-type
should evaluate to "DECIMAL", even ifparameter-value
evaluates to INTEGER or INT64. You can pass a type that matches the target using the same widening and hierarchy rules that are used during compilation. Using the exact target type will generally result in better performance.Validdata-type
strings are: "CHARACTER", "DATASET", "DATASET-HANDLE", "DATE", "DATETIME", "DATETIME-TZ", "DECIMAL", "HANDLE", "INT64", "INTEGER", "LOGICAL", "LONGCHAR", "MEMPTR", "RAW", "ROWID", "TABLE", "TABLE-HANDLE" or "CLASS Object-Type Name". TABLE-HANDLE can be a handle to a static or dynamic TEMP-TABLE. DATASET-HANDLE can be a handle to a static or dynamic ProDataSet object. The BUFFER type is not supported, so use the HANDLE parameters instead.For any parameter array value, the EXTENT keyword is required when specifyingdata-type
. For example, "CHARACTER EXTENT", "INTEGER EXTENT", "LONGCHAR EXTENT", "MEMPTR EXTENT", "CLASS Object-Type EXTENT" and so on.For each parameter, the data type specified by the caller and the callee must be compatible with the ABL object-oriented parameter rules.iomode
A CHARACTER expression that indicates the parameter mode and evaluates to one of the following: "INPUT", "OUTPUT", "INPUT-OUTPUT", "OUTPUT APPEND", "OUTPUT BIND", "INPUT BY-REFERENCE", "OUTPUT BY-REFERENCE", "INPUT-OUTPUT BY-REFERENCE", and "INPUT BIND". For each parameter, the mode specified by the caller and the callee must match. The AVM generates a run-time error ifiomode
is invalid.Unlike the call object’s SET-PARAMETER( ) method, with the exception of "INPUT-OUTPUT", alliomode
combinations are separated by a blank, for example "INPUT BY-REFERENCE".parameter-value
See also: Clear( ) method (Class), Invoke( ) method (Class), New( ) method, NumParameters property
OpenEdge Release 10.2B
|