I am with FVTrainer...you now know why this isn't evaluating as you would like...but what are you trying to do?
It seems that there are footnotes available for various details in your reports....Are these details to be listed in your report footer??? If so this is easy to do.
Just store the footnote and number in an array for later printing in the report footer.
you show little of your report construction (why do they do this?? {shrug})
But let us
ASSUME you have something like this
{detail1} {detail1} {detail1} {detail1} {@FootNote#}
this would alert the reader that there is additional info available at the end of the report.
In the report header place an initialization formula
//@Initialization (suppressed in report header)
WhilePrintingRecords;
//estimate your max no. of footnotes and increase it by 50%
//say you expect 20 max so plan on 30.
StringVar Array ftnote := [ "","","","","","","","","","",
"","","","","","","","","","",
"","","","","","","","","","" ];
StringVar Array ftNum := [ "","","","","","","","","","",
"","","","","","","","","","",
"","","","","","","","","","" ];
numberVar pointer := 0;
StringVar warning := "";
now in the detail section place this formula as I showed in the above example
//@FootNote#
WhilePrintingRecords;
StringVar Array ftnote ;
StringVar Array ftNum ;
numberVar pointer ;
stringVar temp := totext({form_custom_footnote.footnote_nbr},0,"",""

;
stringVar warning; // to let you know when you must maintain the report
if temp <> "0" then
(
pointer := pointer + 1;
if pointer > 30 then
warning := "Maintenance Alert - " + totext(pointer - 30,0,"",""

+ "footnotes missing."
else
(
ftnote[pointer] := {form_custom_footnote.footnote_Description}; //
field name of footnote
ftNum[pointer] := temp ;
);
);
if temp := 0 then
" "
else
temp;
This prints the footnote number or a blank space next to the details
in the report footer(or group footer...in this case the @Initialize is placed in the Group header) you display the footnote results.
the easiest is just to create 30 subsections of the report (or group footer) each subsection has "Suppress Blank Section" enabled...(this is why you make the arrays strings)
report footer Section 1 has this
FootNotes
---------
{@displayFN#1} {@displayFND1}
the rest to the sections are just this..this is tedious but easy to do since all formulas are simple and easily cloned.
{@displayFN#2} {@displayFND2}
this is all these formulas consist of
//@displayFN#1
WhilePrintingRecords;
StringVar Array ftNum ;
ftNum[1];
//@displayFND1
WhilePrintingRecords;
StringVar Array ftnote ;
ftnote[1]
Make certain the "can Grow" is enabled on the @displayFNDx formulas.
Now add one final report or group footer section for the warning
//@MaintenanceAlert (enable suppress blank section)
WhilePrintingRecords;
stringVar warning;
warning;
Place this in the centre of the section and bold it so it is easily visible....this will only show if you ran over 30 footnotes in this case...then you must go in and increase the array sizes accordingly.
Anyway, this was a lot of work but I think this is really what you want...if not {shrug} Tell us!!!
Jim Broadbent
The quality of the answer is directly proportional to the quality of the problem statement!