hexagon logo

Strange subroutine behavior

Good day,

I have a question about subroutines, maybe I'm doing something wrong:​


Used Subroutine Code: (Plz Note this is an example code from Helpfile)
            SUBROUTINE/SUM_NUMBERS,
                NUM1 = 1 : FIRST NUMBER,
                NUM2 = 1 : SECOND NUMBER,
                 =
$$ YES,
            "The sum of the first number, "+NUM1+", plus the second number, "+NUM2+", is: "
            NUM1+NUM2
            ENDSUB/​


If I now try to call this subroutine, the following window appears:

My question is:
1.) Why is the default value 1 in the "Description" field
2.) Why is the "Value" field empty
3.) Why isn't the description "FIRST NUMBER" and "SECOND NUMBER" also transferred?

is this normal or am i doing something wrong?
many thanks for your help​
Parents Reply Children
No Data