Posts: 64
Threads: 11
Joined: Sep 2003
1: How do you get the prossesing bar in basic?? the bar you gewt when you install a software or any thing.
and how do you make the bar run for "X" Seconds ?
2: How do i make a box across text in basic other than something like:
PRINT "________________"
PRINT "| [Text] |"
PRINT"_________________"
Posts: 2,020
Threads: 24
Joined: Jun 2002
If you're in text mode, you have the entire dos character set at your disposal, which contains numerous box-making characters. Look in the QB help under 'ASCII character set' (qboho version don't display properly), and you'll find all the characters you need.
as for a display bar, if you're in text mode:
say you're copying 30 files, or loading 30 things or something. you can have two variables, filescopied and totalfiles, and do this -
Code:
locate bary, barx
for x = 0 to barlength * (filescopied / totalfiles)
print chr$(219); ' I think that's the character for a solid bar
next x
but there's hundreds of thousands of millions of billions of ways to make a progress bar. that one just takes very little code
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Posts: 64
Threads: 11
Joined: Sep 2003
what if you were to make a dummy progress bar
like, one which does no work..just keeps the user waiting ?
Posts: 538
Threads: 62
Joined: Apr 2003
in the qb help bring up the ASCII character codes. go to the second page and then just copy the ones you like and just do
print "?"
sleep 4
print "??"
? = your image thin from the ascii character codes
url=http://www.spreadfirefox.com/?q=affiliates&id=0&t=79]
[/url]
Posts: 3,368
Threads: 195
Joined: Jan 2003
Quote:what if you were to make a dummy progress bar
like, one which does no work..just keeps the user waiting ?
The user would get angry. Very angry...
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 3,343
Threads: 83
Joined: Mar 2003
QBNZ had a challenge compo to create a loading bar, and one of them was text mode. You can get the download of most of the entries from
http://qbnz.com/pages/challenges/oldchallenges/0103.zip
Posts: 64
Threads: 11
Joined: Sep 2003
Quote:print "?"
sleep 4
print "??"
din quite get this