Results 1 to 11 of 11

Thread: Calculating Progress

Threaded View

  1. #5
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    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
  •  



Click Here to Expand Forum to Full Width