in reply to Re: Late Logging...
in thread Late Logging...

But I didnt know where is the error. That is the reason I posted the whole code.

Now I fixed it with your help, thank you.