Quote from
Gaev on January 7, 2020, 4:47 pm
@vwatson
Is there no way to return a value from the function?
If not, you just use a global type variable?
You can use a global type variable (in VisualNEOWin, all variables are Global), but a better way would be to 'reserve one of the (up to) 9 parameters in your Call command as the result-variable' ... there is an example on this Help page ... https://winhelp.visualneo.com/FunctionLibrary.html ... that shows the parameters involved in calculating/returning compound interest.
@vwatson
Is there no way to return a value from the function?
If not, you just use a global type variable?
You can use a global type variable (in VisualNEOWin, all variables are Global), but a better way would be to 'reserve one of the (up to) 9 parameters in your Call command as the result-variable' ... there is an example on this Help page ... https://winhelp.visualneo.com/FunctionLibrary.html ... that shows the parameters involved in calculating/returning compound interest.
luishp and vwatson have reacted to this post.