CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    195

    File Manipulation

    Hi

    I'm reading a file sequentially and I want to display a ProgressBar while I do some calculations. For a Progress bar to work, I need to have a known Maximum value. Now while reading the file, what can I use as the Max value for the Progressbar if I don't know how many records there are in my file?

    Thanks



  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: File Manipulation

    FileLen will return the size of file in bytes. to get the no. of record, just divide the file size by record size. to get record size, you can use Len.



    HTH

    cksiow
    http://vblib.virtualave.net - share our codes

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

Featured