preMain function questions:
1) Is it possible to have values in preMain as parameters so you can control how the study works?
Let's say you have a study that one time you want to load with pricestudy = true and then load it again with pricestudy = false.
Or one time you want to use setComputeOnClose(); but then next time you don't want it use it.
2) Should
var iDecimals = new FunctionParameter("iDecimals", FunctionParameter.NUMBER);
iDecimals.setDefault( 2 );
be coded in preMain or not?
It doesn't seem to matter but I am curious.
THANKING YOU IN ADVANCE.
1) Is it possible to have values in preMain as parameters so you can control how the study works?
Let's say you have a study that one time you want to load with pricestudy = true and then load it again with pricestudy = false.
Or one time you want to use setComputeOnClose(); but then next time you don't want it use it.
2) Should
var iDecimals = new FunctionParameter("iDecimals", FunctionParameter.NUMBER);
iDecimals.setDefault( 2 );
be coded in preMain or not?
It doesn't seem to matter but I am curious.
THANKING YOU IN ADVANCE.
Comment