Thanks Cookie for ur info !
I really didn't think about continuing this piece of software. I stopped for a while, and now I'm lost in the code.
I'll go thru it now and explain how it is worked out.
The program reads down each of the lines of the text file until it finds the .-------. bit.
It goes down to the next line:
code:
SessionStartDate = Mid(TxtLine.ReadLine, 17, 20)
This reads the session start date.
code:
SessionStartDates = SessionStartDate
and plugs it into an array.
It keeps reading down, and skips the next .----. because thats the bottom of the box. It repeats this until the end of the file, and then closes it.
The same file is then reopened to start at the start of the file again. There is no way I know of to go back easily in a text file. This time we skip the first .---. and move the next one.
code:
SessionStartTimeStr = Mid(t, 2, 8)
This reads the 8 chars of the time after the [.
Again, this is a repeated process to get all the session start times.
Now, how does the end time get found?....
Back later...