TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: JIM TANNER
from: CHRIS ADAMS
date: 1995-06-12 00:49:00
subject: Example code...

On (10 Jun 95) Jim Tanner wrote to All...
 JT> Looking for some PB code that does a "percent bar" such as used by an
 JT> installation program to show the percent completed/percent remaining...
First, work something like this:
PercentDone!=BytesCopied&/BytesTotal&
LOCATE 1,1:PRINT "(";PercentDone!"%)";
That'll give you a basic (10%) done message. Next, go on for a bar:
LOCATE 1,1:PRINT STRING$(INT(PercentDone!*10+1), 178);
Remember, both of these should be put inside your install loop.
   - Chris Adams  - (805)928-8565 (VMB/FAX)  -
   - 1:212/2001.5@Fidonet - 87:40/2.5@CoastNet    
... Age is important only in dead fish and good wine.
--- PPoint 1.88
---------------
* Origin: The Point of Obfuscation! (1:212/2001.5)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.