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
855
Possible to Use Cal Manager as Expression Parser?
posted

Hi.  I'm wondering if it's possible to use the Win CalcManager as an expression parser.  I need a tool that will parse math expressions and calculate an answer.  Is this tool capable of doing that?  If so, are there any examples of using it that way?

Thanks.

Parents
  • 469350
    Offline posted

    Hi,

    Not sure what you mean by "parse math expressions and calculate an answer". What kind of math expressions are you talking about here?

    Are you talking about using some custom syntax here?

    If you expression are valid CalcManager formulas, then you could use the Calculate method.

    For example:


                UltraCalcValue calcValue = this.ultraCalcManager1.Calculate("2+2");
                Debug.WriteLine(calcValue.Value);

Reply Children