What's the largest method you have coded? Believe me, I've split up my
program into Mods & Functions & Methods. But it seems as though I'm slowing
it down quite a bit with all the "jumping around". The meat of the program
is a loop. It goes out to about 30 servers (some on 56k and some on 128k so
threading wouldn't help me here), downloads 30-100 log files from each
server (after telling the server to zip them up), then it unzips & parses
all those files to create an html page that displays the data from the logs
in an easily readable format. I tried having a method called
"WriteLineToFile", but having the code inline seems waaaay faster...
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
Terry,
50 lines sounds like you need a new method! :-|
I would put the 50 lines in its own method (Sub or Function) then the For
Each can have a simply If that simply calls the method.
Then again I tend to follow OO with smaller objects with smaller
methods...
Hope this helps
Jay
"Terry Olsen" <to******@hotmail.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl... Yeah that works...I just didn't want to put about 50 lines of code
inside a block if statement.
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl... Terry,
What do I miss?
For Each This in That
if This = True Then
...code
End if
Next
Works like a charm, with the exception when you try to delete a This
in that code.
I hope this helps?
Cor