Good Morning,
I have the following code in a formula:
Shared StringVar Array strTerritories;
Shared NumberVar Array nvrNotesSold;
Shared NumberVar Array cvrAdvisorsColumnTotal;
Global NumberVar nvrCount;
Local NumberVar Counter=0;
Local NumberVar CountHolder=0;
Local StringVar strBlank;
For Counter := 1 to count(strTerritories) Do
(
if GroupName ({View_SalesReportTerritory2.Po_Territory})=strTerritories[Counter] then (
CountHolder := Counter;
Counter := Count(strTerritories)+1;
cvrAdvisorsColumnTotal := cvrAdvisorsColumnTotal + nvrNotesSold[CountHolder];
);
);
if CountHolder > 0 then
nvrNotesSold[CountHolder];
When I check it I receive the error: The work 'else' is missing. and the currsor is positioned between the ) and ; in the life following "cvrAdvisorsColumnTotal := cvrAdvisorsColumnTotal + nvrNotesSold[CountHolder];"
I am sure I am just missing something obvious but does any see why?