AnsweredAssumed Answered

vrf Formula call

Question asked by rsb on Feb 4, 2005
Barrie Walden <bwalden@whoi.edu> wrote:
> Hi folks,
>
> This is probably something everybody else knows but I ran into it for
> the 1st time last week.  The attached simple 6.01 example shows that
> when calling a user function, providing a value via an input pin can
> give a different result than providing the data within a formula call.
> Even the data type is different.
>
> So, did everyone know this but me? Is there a good reason for these two
> calling methods to act differently? I'd rather they didn't.

The 'result' pin on a formula returns the value of the last
expression evaluated. In your formula the function completes without
error but with no output so the result is "0".

The output of the call object returns the output of the function,
which is nill as it is above. nothing returned, nothing seen.

If you want the same in both cases, make sure that your function
returns something.

Stan


--------------------------------------------------------------------------
Stan Bischof  Agilent Technologies  707-577-3994  stan_bischof@agilent.com
--------------------------------------------------------------------------

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes