Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Compute formula in runtime

edited May 2007 in General
Hi,

how can I solve the following task?
I would like to compute variables. For the computation I have a formulas.
In the formula can be used different functions. I can define these
functions in the program (RAP?).

Example for Formula:
GetStatVarValue('MyVariable12')*100/GetStatVarValue('MyVariable08')

I would have gladly something like this in OnCalc event
EvaluateFormula('
GetStatVarValue('MyVariable12')*100/GetStatVarValue('MyVariable08') ') .

I must make that all in runtime.

How do I have to define the function GetStatVarValue in the program? How can
I implement EvaluateFormula?

Regards
Marek

P.S. I use RB 10.03

Comments

This discussion has been closed.