Consultor Eletrônico



Kbase 12903: CHOOSE returns -2 following use of INPUT THROUGH C program
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
CHOOSE returns -2 following use of INPUT THROUGH C program

PROBLEM: PROGRESS returns a -2 from a CHOOSE FIELD

PROCEDURE DESCRIPTION:

PROGRESS 4GL procedure was calling a C program that calculates
a value from parameters passed to it.

INPUT THROUGH <C program>.
{stuff}

which was later followed by CHOOSE FIELD.

By the time the CHOOSE FIELD was reached, PROGRESS is still
looking for response from the program, which of course isn't
sending anything at that point.

Add "INPUT CLOSE." to redirect input back from the _keyboard_,
or use a NAMED STREAM on the C program, e.g.,

DEFINE STREAM c-prog.
INPUT STREAM c-prog FROM library/cprocs/calculator.

SET STREAM c-prog <variable>.


?

Progress Software Technical Support Note # 12903