Eval math formulae containing other table fields?

  • Thread starter Thread starter Brad Young
  • Start date Start date
B

Brad Young

hi,

I want to allow users to enter a mathematical function of
their choice into a single text field that refers to 2-3
other variables in fields of the same table. Every record
could have a different function entered with a different
combination of the same variables. How do I do this? The
Eval function doesn't seem to work here as I can't get it
to evaluate references within a field to other table
fields?

Many thanks,
Brad
 
Brad,
try Cioina.dll from CioinaEval package:
http://www.delphipages.com/result.cfm?ID=3482

DESCRIPTION: Cioina.dll can parse, evaluate and differentiate a
mathematical expression given as a string.

MAIN FEATURES:

* accept operators: + - * / ^ = ~

* accept user defined functions and constants (maximum 65400)

* functions accept any number of parameters (maximum 2147483647)

* functions accept varying number of parameters

* includes common math functions and constants (82 built-in)

* supports "if" and "while" functions

* supports boolean expressions

* fast evaluation (the expression can be evaluated quickly for
different variable values)

* error handling with localizing points of failure

* optimized calculations (constant parts of expression are calculated)

* parsed expression can be retrieved (added parenthesis)

* expression can be differentiated

* can export to Mathematica 4.x/5.x form

* can parse an expression array

* cross-platform compilation (Windows-Linux)

* variables automatic check possibility

* defines functions on runtime.

* space like multiplication operator.

* built-in small help

* exception control

* full support for D5, D6, D7, CLX2, CLX3, C++Builder6, C#, VB6, VC6.

* full sources and demos(TCioinaEval,CioinaMathLink, CioinaEvalOLE,
Cioina.DLL)

* update service
 
Back
Top