If you want to include your progress bar in a form, the following are the NON DEFAULT properties for the only two additional controls needed.
You will need to determine the position and size of txtProgressBar and make both controls [color blue].Visible = .T.[/color] during processing, and [color blue].Visible = .F.[/color] on [color blue]EXIT[/color]ing the loop.
[color blue]
WITH THISFORM.txtProgressBar
[tab].Alignment = 2
[tab].DisabledBackColor = RGB(255,25,255)
[tab].DisabledForeColor = RGB(0,0,0)
[tab].Enabled = .F.
[tab].TabStop = .F.
[tab].Visible = .F.
ENDWITH
WITH THISFORM.shpProgressBar
[tab].BackStyle = 0
[tab].BorderStyle = 0
[tab].DrawMode = 14
[tab].FillColor = RGB(0,0,128)
[tab].FillStyle = 0
[tab].Height = [/color][color green]&& Same as txtProgressBar[/color][color blue]
[tab].Top = [/color][color green]&& Same as txtProgressBar[/color][color blue]
[tab].Visible = .F.
[tab].Width = 1
ENDWITH
[/color]
The following code might be typical of table processing and needs including in your [color blue]SCAN...ENDS[/color] loop etc, where [color blue]lnCount[/color] is the number of records processed.
[color blue]
WITH THISFORM
[tab].txtProgressBar.Value = ;
[tab][tab]ALLTRIM(STR((lnCount / RECCOUNT(
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.