Topic: Call() return value (1 of 2), Read 15 times
Conf: VEDIT Macro Language Support
From: Pauli Lindgren
Date: Thursday, January 22, 2009 05:33 AM

I wonder why Call() function does not return the return value?

It is possible to set the return value with return command, for example
return(2)

However, call() always returns TRUE. The return value can only be read from Return_Value.
Is there some particular reason why call does not return the return value?
It would make things more simple and clear.

--
Pauli

 


Topic: Re: Call() return value (2 of 2), Read 13 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Friday, January 23, 2009 09:51 AM

At 05:37 AM 1/22/2009, you wrote:
>From: "Pauli Lindgren"
>
>I wonder why Call() function does not return the return value?
>
>It is possible to set the return value with return command, for example
>return(2)

I wrote the Call() code to return the value of Return_Value, but verified that it always returns 1. Looking at it today, it looks rather tricky.
Therefore I will add this to my bug list.
Thank you for pointing it out.

Ted.