I cannot get my report to remember the value of an array element in a group footer.
Test Formula in group header for "@NoteAHeader" is:
Global StringVar Array Notes := ["One","Two","Three","Four","Five"];
Notes[2] := "Two";
Notes[2];
Test Formula in details for "@NoteADetails" is:
Global StringVar Array Notes;
if {SV00200.ADRSCODE} = "MAIN" then
Notes[2] := "TwoYes"
Notes[2];
Test Formula in group footer for "@NoteAFooter" is:
Global StringVar Array Notes;
Notes[2];
The data might be something like this within a group:
1. ADRSCODE = "123"
2. ADRSCODE = "MAIN"
3. ADRSCODE = "456"
When record #2 is processed, the Notes array element 2 is changed to "TwoYes", but the group footer still shows "Two"
I don't understand the way Crystal references global memvars so they can be accessed in group footers.
Please help.
Thanks.
Test Formula in group header for "@NoteAHeader" is:
Global StringVar Array Notes := ["One","Two","Three","Four","Five"];
Notes[2] := "Two";
Notes[2];
Test Formula in details for "@NoteADetails" is:
Global StringVar Array Notes;
if {SV00200.ADRSCODE} = "MAIN" then
Notes[2] := "TwoYes"
Notes[2];
Test Formula in group footer for "@NoteAFooter" is:
Global StringVar Array Notes;
Notes[2];
The data might be something like this within a group:
1. ADRSCODE = "123"
2. ADRSCODE = "MAIN"
3. ADRSCODE = "456"
When record #2 is processed, the Notes array element 2 is changed to "TwoYes", but the group footer still shows "Two"
I don't understand the way Crystal references global memvars so they can be accessed in group footers.
Please help.
Thanks.