Skip to Content
0
Former Member
Jul 20, 2009 at 12:24 PM

Array error message

20 Views

Hi All,

I have a string that I am creating that concatenates values separated by a "^". This is in my main report.

I linked the string to a subreport. When I display the string in the subreport, it shows up. When I try to split it, I get the following error message: "An array's dimension must be an integer between 1 and 1000."

Main Report (Group Footer):

whileprintingrecords;

stringvar arrquoteid;

arrquoteid:=arrquoteidtotext({Quote.quoteid})"^"

SubReport (Details):

WhileReadingRecords;

stringVar array arr;

numberVar i;

arr:=split({?Pm-@arrQuoteID},"^");

i:=i+1;

if i<= Count(arr) and arr<i><>"" then

tonumber(arr<i>)

else

0

What am I doing wrong to receive the above error message?

Thank you in advance.