Progress
Version 9
Product Update Bulletin
SET-PARAMETER() Method
Lets you specify a parameter.
Return Type: LOGICALApplies To: CALL Object HandleSYNTAX
parameter-number
An INTEGER expression indicating the order of the parameter. Use 1 for the first parameter, 2 for the second parameter, etc.
data-type
A CHARACTER expression indicating the data type of the parameter and evaluating to one of the following:
iomode
A CHARACTER expression indicating the mode of the parameter and evaluating to one of the following:
- “INPUT”
- “OUTPUT”
- “INPUT-OUTPUT”
- “OUTPUT-APPEND”
For each parameter, the mode specified by the caller and the callee must match.
For parameters of attributes, specify “INPUT.”
For TABLE-HANDLE output parameters whose output is to be appended to the table, and in no other case, specify “OUTPUT-APPEND.”
parameter-value
An expression whose type is compatible with data-type.
NOTE: TABLE-HANDLE can be a handle to a static or dynamic TEMP-TABLE.If iomode is “INPUT” or “INPUT-OUTPUT,” if the data type of parameter-value does not agree with the data type passed, parameter-value will automatically be converted to the data type passed during SET-PARAMETER() processing.
If iomode is “OUTPUT” or “INPUT-OUTPUT,” each of the following must be true:
- parameter-value must represent a program variable or a NO-UNDO TEMP-TABLE field (perhaps with an array reference).
- parameter-value must still be in scope and must still be valid when the dynamic invoke is executed.
If the output value from the called procedure does not have a data type that matches the data type passed, the output value will be converted to the data type passed.
If iomode is “OUTPUT,” parameter-value is ignored if the ASYNCHRONOUS attribute is TRUE.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |