Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2006
    Posts
    355

    Thumbs down function repeat numLoopCount BUG!!

    found a bug in the function of repeat numLoopCount ..

    And is that if the total of times to repeat the function is more than 500, the application is blocked and does not respond, and when ending closes...

    Example:

    Code:
    numLoopCount = 1;
    repeat
    
    File = ListBox.GetItemText("ListBox1", numLoopCount);
    File.Delete(File, false, false, false, nil);
    
    	numLoopCount = numLoopCount + 1;
    until numLoopCount == 600;

    Any suggestions?

    thx

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    Try this:

    Code:
    File.Delete(ListBox.GetItemText("ListBox1", numLoopCount), false, false, false, nil);
    Never know what life is gonna throw at you.
    (Based on a true story.)

  3. #3
    Join Date
    Aug 2006
    Posts
    355

    Thumbs down

    No, that's not the problem.

    I have File.Delete as simple example, but whatever action you make repeated so often, the function is not working properly, it blocks the application (no response) and closes.

    You might try putting Registry.Delete, file.copy or action you want, as long fault that role when you have 1ue repeated more than 500 times

    Any suggestion or other function for repeat one fuction +1000 times?

    thx

  4. #4
    Join Date
    May 2005
    Posts
    1,115
    What happens if you use for loop?
    Never know what life is gonna throw at you.
    (Based on a true story.)

  5. #5
    Join Date
    Aug 2006
    Posts
    355
    Please one exmple

    thx

  6. #6
    Join Date
    May 2005
    Posts
    1,115
    Code:
    local numLoopCount;
    local File;
    
    for numLoopCount = 1, 600 do
      File = ListBox.GetItemText("ListBox1", numLoopCount);
      File.Delete(File, false, false, false, nil);
    end
    Try using local whenever you can (but it is not required).
    Never know what life is gonna throw at you.
    (Based on a true story.)

  7. #7
    Join Date
    Aug 2006
    Posts
    355


    Bule very thanks, this code works perfect!!

    thx

Similar Threads

  1. TrueUpdate 2.0 Update (v2.0.6.0) Released
    By Brett in forum TrueUpdate 2.0
    Replies: 0
    Last Post: 10-31-2006, 01:10 PM
  2. BAD BUG with THIS FUNCTION: String.TrimLeft
    By DjArko85 in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 09-24-2006, 04:56 AM
  3. Another tough one... Interaction between Web and AMS
    By Agent Jones in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 08-18-2005, 02:10 PM
  4. New Setup Factory 7.0 (v 7.0.2.0) Available
    By Darryl in forum Setup Factory 7.0
    Replies: 9
    Last Post: 03-06-2005, 01:57 PM

Posting Permissions

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