i have some code that calculates a value based on a parameter;
i envision having several calculated fields on a form, and
each of them would call this common calculation, passing
a paramater specifiec to each of them, and each field would display
the results of the calculation on the form.
however, i can't pass an argument to a calculation, so that idea
is out.
i seem to remember reading on the forum that i'ts NOT ok for
a calculated field to call a global method (correct me if i'm wrong),
so the idea of a global method containing the formula is out as well.
it seems that the only option i have, is to have all 4 calculated fields
on the form each have their own copy of the formula, which breaks
all the rules of good programming practice.
can anyone tell me of a better way to do this in servoy?