CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2013
    Posts
    3

    Error Message: A Loop was evaluated more than the maximum....

    Hi,

    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


    Code:
    //output := cstr(test) + " ";
    output:="";
    
    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');
    );
    //output
    //GetLocalTimeFromGMT({?Pm-?SPTimeZone},CurrentDateTime)
    //GetLocalTimeFromGMT({?Pm-?SPTimeZone},{TW_V_AUDIT_SUBMITTED_ON.date_time_value})
    
    thanks,
    netchie
    maximum({?Date Range})
    Last edited by GremlinSA; November 21st, 2013 at 01:18 AM. Reason: added code tags..

  2. #2
    Join Date
    Jul 2005
    Posts
    1,083

    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.
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured