Consultor Eletrônico



Kbase P26469: Set-parameter call-object method get run-time error:
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Unverified

FACT(s) (Environment):

Progress 9.1D

SYMPTOM(s):

Set-parameter call-object method get run-time error:

"The only widget-attribute combination allowed for an OUTPUT parameter in SET-PARAMETER is buffer-field-hdl:BUFFER-VALUE"

use set-parameter method to set an output or input-output temp-table parameter

The used syntax is something like:
h:set-parameter(1,'table-handle','output',temp-table tt:handle).

CAUSE:

SYNTAX:
SET-PARAMETER(parameter-number, data-type, iomode, parameter-value)
If iomode is "OUTPUT" or "INPUT-OUTPUT," the following must be true:
parameter-value must represent a program variable or a NO-UNDO TEMP-TABLE field

In the above example was used the expression temp-table tt:handle instead of a variable or a NO-UNDO TEMP-TABLE field

FIX:

The correct statement is something like:

def var p as handle no-undo.
p = temp-table tt:handle.
h:set-parameter(1,'table-handle','output',p).