Indigo Rose Software
  #1  
Old 12-04-2007
Solmos Solmos is offline
Forum Enthusiast
 
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
Reply With Quote
  #2  
Old 12-05-2007
bule's Avatar
bule bule is offline
Indigo Rose Customer
 
Join Date: May 2005
Posts: 1,147
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.)
Reply With Quote
  #3  
Old 12-05-2007
Solmos Solmos is offline
Forum Enthusiast
 
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
Reply With Quote
  #4  
Old 12-05-2007
bule's Avatar
bule bule is offline
Indigo Rose Customer
 
Join Date: May 2005
Posts: 1,147
What happens if you use for loop?
__________________
Never know what life is gonna throw at you.
(Based on a true story.)
Reply With Quote
  #5  
Old 12-05-2007
Solmos Solmos is offline
Forum Enthusiast
 
Join Date: Aug 2006
Posts: 355
Please one exmple

thx
Reply With Quote
  #6  
Old 12-05-2007
bule's Avatar
bule bule is offline
Indigo Rose Customer
 
Join Date: May 2005
Posts: 1,147
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.)
Reply With Quote
  #7  
Old 12-07-2007
Solmos Solmos is offline
Forum Enthusiast
 
Join Date: Aug 2006
Posts: 355


Bule very thanks, this code works perfect!!

thx
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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


All times are GMT -6. The time now is 12:36 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software