I have a Global numbervar to count the number of times a condition is met. The numbervar is set to 0 for each separate category. In each category it misses counting the last record even though the condition is met.
I've tried to methods of "adding" for the count
(ClovisCount := ClovisCount + BaseInt and (ClovisCount := ClovisCount + 1
Any ideas?
_______________________________________________________
// Here is my code
whileprintingrecords;
Global Numbervar ClovisCount;
Global Numbervar TotalClovisCount;
Local Numbervar BaseInt;
If {incident.completed} = True And
{incident.priorityresponseflag}=True and
{incident.mutualaidcode}<>"3" and
{incident.mutualaidcode}<>"4"
Then
BaseInt := 1 else
BaseInt := 0;
ClovisCount := ClovisCount + BaseInt;
I've tried to methods of "adding" for the count
(ClovisCount := ClovisCount + BaseInt and (ClovisCount := ClovisCount + 1
Any ideas?
_______________________________________________________
// Here is my code
whileprintingrecords;
Global Numbervar ClovisCount;
Global Numbervar TotalClovisCount;
Local Numbervar BaseInt;
If {incident.completed} = True And
{incident.priorityresponseflag}=True and
{incident.mutualaidcode}<>"3" and
{incident.mutualaidcode}<>"4"
Then
BaseInt := 1 else
BaseInt := 0;
ClovisCount := ClovisCount + BaseInt;