I need to add a simple calculator to my web project and was wondering if anyone has written one that I could use (pay for) or if a plugin is available to save me time from having to write one. Thanks.
You can use XojoScript for that. Check the examples.
What examples/where? I have looked in the Xojo Examples but cant see anything. Sorry if I am being stupid!!
Sorry, I thought it was there.
Nevertheless, you need a XojoScript control, you assign an expression to source property like this:
xojoScript1.source = “print str(” + formula + “)”
and you call run method. In print event you get the result of the formula.
Look in Examples -> Advanced -> XojoScript -> Evaluator for an examine of how to do this.