FUNCTION statement
Posted: March 11th, 2019, 9:46 am
I was reviewing a third party´s program and I found the following command:
FUNCTION TRABAJA(IND);
The function command should be finished with an END statement, but the compiler did not detect that.
Later in the program I found
TRABAJA = PUNTAJES;
How can a function name receive a value?
And then
NUMERIC TRABAJANDO = TRABAJA(SECUENCIA);
This call should return a default value? Or zero?
Very interesting
Best
Ari
FUNCTION TRABAJA(IND);
The function command should be finished with an END statement, but the compiler did not detect that.
Later in the program I found
TRABAJA = PUNTAJES;
How can a function name receive a value?
And then
NUMERIC TRABAJANDO = TRABAJA(SECUENCIA);
This call should return a default value? Or zero?
Very interesting
Best
Ari