ProgressBar assist needed

From: Steve (admlcl_at_yahoo.com)
Date: 05/07/04


Date: 6 May 2004 18:14:59 -0700

Having looked in the archives I have found nothing to help me with this.
I am reading text file of unknown number of records into a UDT array,
I am current using a counter in the loop to display the record count on
a label as the loading progresses,I would instead like to use a progressbar
to display the progress.I know how to get the File size using LOF(1) but have
found nothing showing how to measure the size of each loop and use it in the
progress bar. Code I'm using to read the file
   Open App.Path & FileName for Input as #1
        Countr = 0
         Do While Not EOF(1)
           ReDim Preserve Stuff(Countr) As Bob
               Input #1 Stuff(Countr).one,Stuff(Countr).two,_
                        Stuff(Countr).three,Stuff(Countr).four
                 Countr=Countr + 1
                  Label1.Caption = "Loading Records: " & Countr
                  Label1.Refresh
          Loop
   Close #1
   
      any pointers greatly appreciated
         SteveC
  PS everything is appropriately Dim'd



Relevant Pages

  • Re: (C) Simulated progress bar
    ... > I'm thinking the progress bar would be fairly straight-forward... ... > Just a for loop, set up to display a bunch of hashmarks or ASCII block ... a.c.l.l.c-c++ FAQ: http://www.comeaucomputing.com/learn/faq ...
    (alt.comp.lang.learn.c-cpp)
  • Re: visual basic 6 progress bar?
    ... What I'm trying to do is display a progress bar for 1 Do Until loop within my program. ... When I put the progress bar code on the out side of the loop, it ran the whole Do Until loop first and then displayed the progress bar filling up afterward: ...
    (microsoft.public.vb.controls)
  • Re: Possible to time out a popup?
    ... The progress bar is nice, ... >| I am trying to display a popup box that times out. ... >| loop it so it doesn't allow user interaction until the ... > showBar oIe ...
    (microsoft.public.scripting.vbscript)
  • RE: Progress bar on composite control
    ... do postback to do some server-side processing which may take some time. ... such progress bar displaying should be done through ... My suggestion is you display the progress bar before your control ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Interpreting the colon operator
    ... I tried this by using the print statement inside the loop. ... What follows then would be a display of ... is apparently affected by the fact that matlab is aware that 'Av' ... three-dimensional matrix even though the first index is restricted ...
    (comp.soft-sys.matlab)