When are Shared Variables available and how does this tie with their usage in Formulas? It appears they aren't available until AFTER the detail section line prints. Can this be changed to DURING the detail section line processes? I'll try to explain:
I have a formula in which I calculate variables to keep the logic consistent and in one place, and formulas which print these variables:
CALCFORMULA
Shared numbervar var1;
Shared numbervar var2; (var3,4,etc)
if criteria1 then
var1 := (calculation)
elseif criteria2 then
var2 := (calculation) (var3,4,etc)
elseif etc.
PRINTVAR1 FORMULA (var2,3,4,etc)
Shared numbervar var1;
var1
My detail line is:
Field field field PRINTVAR1 PRINTVAR2 etc 3 & 4
My CALCFORMULA is in the detail section as well. The printed variable values do not match the calculation of the the current detail record (ex. Table.Value1 - Table.Value2) UNTIL THE NEXT LINE.
Ex. Var1 := 22-2 s/b 20.
This does not display 20 until following line. How can I correct this?
thanks
I have a formula in which I calculate variables to keep the logic consistent and in one place, and formulas which print these variables:
CALCFORMULA
Shared numbervar var1;
Shared numbervar var2; (var3,4,etc)
if criteria1 then
var1 := (calculation)
elseif criteria2 then
var2 := (calculation) (var3,4,etc)
elseif etc.
PRINTVAR1 FORMULA (var2,3,4,etc)
Shared numbervar var1;
var1
My detail line is:
Field field field PRINTVAR1 PRINTVAR2 etc 3 & 4
My CALCFORMULA is in the detail section as well. The printed variable values do not match the calculation of the the current detail record (ex. Table.Value1 - Table.Value2) UNTIL THE NEXT LINE.
Ex. Var1 := 22-2 s/b 20.
This does not display 20 until following line. How can I correct this?
thanks