Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A Simple Fast Progress Bar
Message
From
04/01/2001 09:58:20
Jonathan Cochran
Alion Science and Technology
Maryland, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00459173
Message ID:
00459329
Views:
22
Try the following slight modification. It gives a fixed width progress bar.
#Define DC_PROGRESSBARLENGTH    75

Procedure ShowProgress
LParameter lcMsgTxt,;
           lnPercent

Local lnCurrentBarLen
lnCurrentBarLen=Int(DC_PROGRESSBARLENGTH*Min(1,lnPercent))

_VFP.STATUSBAR = "  Progress:  |" + REPLICATE( "I", lnCurrentBarLen ) + REPLICATE( ".", DC_PROGRESSBARLENGTH - lnCurrentBarLen ) + "|  " + lcMsgTxt

Return
Previous
Reply
Map
View

Click here to load this message in the networking platform