Hello forum,
I have the below formula embedded in my report...
//
WhilePrintingRecords;
StringVar Array parts;
if parts[1] = "" then parts[1] := {@addParentParts}
else if not({@addParentParts} in parts) then
(
redim preserve parts[Ubound(parts)+1];
parts[UBound(parts) + 1] := {@addParentParts};
)
//
but when i run the report, i get the below error message...
---------------------------
Crystal Reports
---------------------------
A subscript must be between 1 and the size of the array.
---------------------------
OK
---------------------------
Can someone please advice me how to resolve this error? what am i doing wrong here?
Regards,
Charith
I have the below formula embedded in my report...
//
WhilePrintingRecords;
StringVar Array parts;
if parts[1] = "" then parts[1] := {@addParentParts}
else if not({@addParentParts} in parts) then
(
redim preserve parts[Ubound(parts)+1];
parts[UBound(parts) + 1] := {@addParentParts};
)
//
but when i run the report, i get the below error message...
---------------------------
Crystal Reports
---------------------------
A subscript must be between 1 and the size of the array.
---------------------------
OK
---------------------------
Can someone please advice me how to resolve this error? what am i doing wrong here?
Regards,
Charith