This is a delphi component for calculating expressions at run time, Powerful and very easy to use.
Download : http://assistsoft.com/Cal/Cal010.zip
Functions | Usage | Error message | Build in functions| Sample expressions
| Order| Contact
Functions :
1. operator supported : + , - , * , /, ^ , = , ==, > , < , >= , <= ,<> , & , | , ( , )
2. support multi-line.
3. support parameter.
4. support self defined functions.
5. support variable.
6. build in ten more functions , you can expand it easily.
7. error message handling.
8. formated export the result.
9. support nested functions.
------------------------
How to use variable:
B= 20
A= (30 + B) ^ 2 /2
the result will be
B= 20.00000
A= 1250.00000
------------------------
Nested build in functions:
sum(10,sin(pi/2),sum(1,2,3,4))
parameter : pi=3.1415926
the result will be
21.00
------------------------
Condition expression
A = sum(Price1,Price2)
B = (A > 10) * Price1 + (A<=10) *Price2
parameter: Price1 = 5
Price2 = 1
the result will be
A= 6.00000
B= 1.00000
parameter : Price1=6
Price2=5
the result will be
A= 11.00000
B= 6.00000
---------------------------
Self defined functions:
Salary1=GetSalary(1)
Salary2=GetSalary(2)
Salary3=GetSalary(3)
Sum=Salary1+Salary2+Salary3
the result will be
Salary1= 5500.00
Salary2= 6000.00
Salary3= 4500.00
Sum= 16000.00
Prices & Order