Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create string array of more than 1000 elements

Status
Not open for further replies.

makk07

Programmer
Aug 22, 2007
24
US
Hi Everyone,

I am using Crystal Reports XI and I want to create an array of 5000+ elements,and I know there is a limitation of 1000 elements in crystal reports.

Its urgent,please suggest how to do that.

Please help me out.

Thanks in advance

 
I needed a 3000 element array and got around it this way.

In report header added a formula which initiated 3 arrays with 1000 elements

global numbervar array ClientList;
global numbervar array ClientList2;
global numbervar array ClientList3;
global numbervar CliCnt;


If not({RPT_BFS_CLIENT_DETAILS.CLIENT_KEY} in ClientList) and not({RPT_BFS_CLIENT_DETAILS.CLIENT_KEY} in ClientList2) and
not({RPT_BFS_CLIENT_DETAILS.CLIENT_KEY} in ClientList3) and {RPT_BFS_QUOTE_ANALYSIS.POL_CRT_DATE} in [{?FROMDATE} to {?TODATE}]
and CliCnt <= 1000 then ClientList [CliCnt]:={RPT_BFS_CLIENT_DETAILS.CLIENT_KEY}
else
If not({RPT_BFS_CLIENT_DETAILS.CLIENT_KEY} in ClientList) and not({RPT_BFS_CLIENT_DETAILS.CLIENT_KEY} in ClientList2) and
not({RPT_BFS_CLIENT_DETAILS.CLIENT_KEY} in ClientList3) and {RPT_BFS_QUOTE_ANALYSIS.POL_CRT_DATE} in [{?FROMDATE} to {?TODATE}]
and CliCnt > 1000 and CliCnt <= 2000 then ClientList2 [CliCnt-1000]:={RPT_BFS_CLIENT_DETAILS.CLIENT_KEY}
else
If not({RPT_BFS_CLIENT_DETAILS.CLIENT_KEY} in ClientList) and not({RPT_BFS_CLIENT_DETAILS.CLIENT_KEY} in ClientList2) and
not({RPT_BFS_CLIENT_DETAILS.CLIENT_KEY} in ClientList3) and {RPT_BFS_QUOTE_ANALYSIS.POL_CRT_DATE} in [{?FROMDATE} to {?TODATE}]
and CliCnt > 2000 then ClientList [CliCnt-2000]:={RPT_BFS_CLIENT_DETAILS.CLIENT_KEY};

If not({RPT_BFS_CLIENT_DETAILS.CLIENT_KEY} in ClientList) and not({RPT_BFS_CLIENT_DETAILS.CLIENT_KEY} in ClientList2) and
not({RPT_BFS_CLIENT_DETAILS.CLIENT_KEY} in ClientList3) and {RPT_BFS_QUOTE_ANALYSIS.POL_CRT_DATE} in [{?FROMDATE} to {?TODATE}] then
CliCnt:= CliCnt+1;


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top