I am trying to create a list of each unique value in a field by using the Creating Dynamic Arrays document from Crystal, but I get a syntax error. I am using 6.5 and am wondering if the redim preserve is allowed in this version.
Here is the formula:
WhilePrintingRecords;
stringVar array GroupList;
numberVar Counter;
if not ({HD_INCIDENT.OWNER_GRP} in GroupList) then
(Counter := Counter + 1;
if counter <= 100
then (redim preserve GroupList[Counter];
GroupList[Counter] := {HD_INCIDENT.OWNER_GRP}));
Here is the formula:
WhilePrintingRecords;
stringVar array GroupList;
numberVar Counter;
if not ({HD_INCIDENT.OWNER_GRP} in GroupList) then
(Counter := Counter + 1;
if counter <= 100
then (redim preserve GroupList[Counter];
GroupList[Counter] := {HD_INCIDENT.OWNER_GRP}));