|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
What happens if you use for loop?
__________________
Never know what life is gonna throw at you. (Based on a true story.) |
|
#5
|
|||
|
|||
|
Please one exmple
thx |
|
#6
|
||||
|
||||
|
Code:
local numLoopCount;
local File;
for numLoopCount = 1, 600 do
File = ListBox.GetItemText("ListBox1", numLoopCount);
File.Delete(File, false, false, false, nil);
end
__________________
Never know what life is gonna throw at you. (Based on a true story.) |
|
#7
|
|||
|
|||
|
Bule very thanks, this code works perfect!! thx |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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.








Linear Mode

