Return value from a function? - Forum

Forum Navigation
You need to log in to create posts and topics.

Return value from a function?

I see that you can pass parameters to a function in VisualNEO Win. Is there no way to return a value from the function?

If not, you just use a global type variable?

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

Oh, yes, that makes sense. It's been several years since I used Neobook, so I'm reorienting myself.

Thanks!