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
300
User defined formulas for WinCalcManager
posted

Is there any way I can create my own named formula using code for the calculation?  In other words, define a name with operands and have WinCalcManager call a delegate (which I would provide) to do the actual calculation.  The delegate method would return the result.

Parents
  • 45049
    Verified Answer
    posted

    You can define your own named formula by subclassing the UltraCalcFunction class.  The API documentation of the UltraCalcFunction class (link taken from our online help documentation for NetAdvantage for .NET 2008 Volume 3) provides an example of implementing a "factorial" formula.  This example also demonstrates how to calculate the result of the custom formula.

    Once you've created a custom formula and include it in a project,  you can use it in any way where you would use one of the built-in formulae.

Reply Children