|
-
Apr 4th, 2007, 11:45 AM
#5
Re: Calculating Progress
Pseudocode:
1) Open the file in binary mode.
2) Read the whole file in as a string.
3) Use INSTR() to count the number of VbCrLF characters in the file to get the number of lines before you start.
4) Close the file.
5) Open it back up for Input.
6) The progress bar can then be incremented at a uniform rate based upon the average (mean) line length (LOF/Count) as lines are read in one at a time.
Just an idea to consider.
Last edited by Code Doc; Apr 4th, 2007 at 01:07 PM.
Reason: fix typo
Doctor Ed
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|