Skip to Content
author's profile photo Former Member
Former Member

error: An Array's dimension must be an integer between 1 and 1000

Created a sub report in which some calculation are done.

Then change those number into string and calling them in MAIN report just to show them in groups with each group

giving different numbers.

but at the report run time gets an error " An Array's dimension must be an integer between 1 and 1000"

The variable is called in the report as this:

"evaluateafter({@groupdisp});

numbervar grpadd;

shared stringvar str_gas;

tonumber (split(str_gas,"^")[grpadd])"

it is displaying a long thread of number as 123456789

each number has to be displayed at respective group level.

in the subreport it is declared as:

WhilePrintingRecords;

shared numbervar gasoline;

shared stringvar str_gas := str_gas + totext(gasoline) + "^";

while "shraed numbervar gasoline" is described as

shared numbervar gasoline;

gasoline := Sum ({@cust_set_total}, {P_LIQ_STLMNT_AGMT_BY_STATION.STATION_CD})

any help on this would be appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2011 at 01:26 PM

    move the result of the split into a fixed array

    and test the array elements

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.