[Stackoverflow] [Progress OpenEdge ABL] Calling a procedure from another file

Status
Not open for further replies.
S

sander

Guest
I'm trying to call a procedure which is is another file. What I've got so far results in an error:

test.p

DEFINE VARIABLE tmp AS CHARACTER.
RUN sumWords.p(INPUT "Hello", INPUT "World", OUTPUT tmp).
DISPLAY tmp.


sumWords.p

PROCEDURE sumWords:
DEFINE INPUT PARAMETER i_firstWord AS CHARACTER.
DEFINE INPUT PARAMETER i_secondWord AS CHARACTER.
DEFINE OUTPUT PARAMETER o_returnWord AS INTEGER.

o_returnWord = i_firstWord + i_secondWord.
END PROCEDURE.


test.p passed parameters to sumWords.p, which didn't expect any. (1005)

Continue reading...
 
Status
Not open for further replies.
Top