Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
Use CalcManager without binding to controls
posted

Hi Mike,

     Can I use CalcManager without binding to controls. Here is what I want to do. I will assign formula to CalcManager like ( A + B ) * ( IF ( X > Y, X , Y )). Then I will pass the value of each A, B, X, Y dynamically from the code. Is it possible to achieve using CalcManager?

Thanks

Regards

Wynn

  • 469350
    Verified Answer
    Offline posted

    Hi Wynn,

    Yes, what you need to do is used NamedReferences. You can add NamedReferences called "A", "B", "X", and "Y". To give a NamedReference a constant value, you set it's formula. For example, "5" is a perfectly valid formula.

    Then you can create another NamedReference whose formula is "( [A] + [B] ) * ( IF ( [X] > [Y], [X] , [Y] ))"

    I'm pretty sure there is a sample that does something like this in order to calculate the radius of a circle incluced with the NetAdvantage SDK under the UltraCalcManager samples.