Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progressbar
Message
From
27/10/2003 13:34:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
27/10/2003 13:13:44
John Marrone
Bloodstock Research Inc.
Lexington, Kentucky, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00843078
Message ID:
00843162
Views:
30
>Here is part of code that doesn't work.
>
>nR = 1
>DO WHILE ! FEOF(nHandle)
> nR = nR + 1
> vcStr = FGETS(nHandle, 8192)
>ENDDO
>DO FORM frmImpPrgBar
>frmImpPrgBar.pbImport.Min = 0
>frmImpPrgBar.pbImport.Max = nr
>frmImpPrgBar.pbImport.Style = 1
>frmImpPrgBar.pbImport.Value = 0
>
>On my form I put the progressbar and in the properties box none of the properties that I used in vb6 are listed.

PMFJI how much partial is this code? It seems you're trying to use pbar after the work has already finished.
with thisform.pbImport
* Init pbar 
  .Min = 0
  .Max = ceiling(fseek(m.nHandle,0,2)/8192)
  =fseek(m.nHandle,0,0)
  DO WHILE !FEOF(m.nHandle)
     vcStr = FGETS(m.nHandle, 8192)
     .Value = min(.Value+1, .Max) && Update
  ENDDO
endwith
Works very well for me.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform