Thread: Long Loops

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    1
    Rep Power
    0

    Long Loops


    I am using a For loop to copy a bunch of files to a different folder, over 1000 of them. Each file is pretty small (10-20kb). When the loop runs, the program seems like it is not responding, although it is still running. The form becomes blank and doesn't update any text boxes or anything. Is there something you have to do when working with long loops, maybe add a delay or something?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Location
    Dublin
    Posts
    413
    Rep Power
    14
    call doevents ... perhaps not in every cycle but reasonably often

IMN logo majestic logo threadwatch logo seochat tools logo