November 20th, 2013, 10:24 AM
Error Message: A Loop was evaluated more than the maximum....
I have CR 2008 and updated the data source location of the report since we are using a new version of the database. I was running this report when I got this error message --> "A loop was evaluated more than the maximum number of times allowed". And it's highlighting the "for" below. Can you please help me figured out how to fix it? You're help is highly appreciated
//output := cstr(test) + " ";
for n:= 1 to ubound(audit) do
output:= output + chr(13) + cstr(audit[n]) + ' - ' + cstr(dtrge_strt[n],'dd-MMM-yyyy') + ' - ' + cstr(dtrge_end[n],'dd-MMM-yyyy');
Last edited by GremlinSA; November 21st, 2013 at 01:18 AM.
Reason: added code tags..
November 20th, 2013, 03:26 PM
Re: Error Message: A Loop was evaluated more than the maximum....
Search for Option Loop statement
The default are 100,000 iterations
Also, check your loop logic
Last edited by jggtz; November 20th, 2013 at 03:32 PM.
... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!