1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Calling a procedure from another file

Discussão em 'StackOverflow' iniciado por fdantas, Setembro 12, 2018.

  1. fdantas

    fdantas Administrator Moderador

    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...

Compartilhe esta Página