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.
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.
I looked at that documentation, but it does not give me an example of what I need. I was wondering if you know of an example like the choose function that allows for dynamic args and no max arg.
Thanks.
Thanks for the prompt reply. This is exactly what I need.