I'm trying to use an array to populate multiple values on my report, but it is only populating the last value in the array.
Shared StringVar Array strDxCodes := MakeArray({Query1.CLCL_ID}, {Query1.IDCD_ID});
Local NumberVar iIndex := 0;
Local StringVar strDxList := "";
for iIndex := 1 to UBound(strDxCodes) do
(
if strDxCodes[iIndex] <> "" then
(
Local StringVar Array strDxCodes := split(replace(strDxCodes[iIndex], "'", ""),
".");
if strDxCodes[1] = {CLM153_CLMS.Claim Identifier} then
(
strDxList := strDxList & strDxCodes[2] & chr(10);
);
);
);
strDxList;
I don't think the carriage return chr(10) works, is there anything else I can use for a carriage return.
Can't see the problem, Help.
Edited by r140396 - 24 Jun 2008 at 2:22pm