Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › how do i make a password prompt in QBASIC?
New Posts  All Forums:Forum Nav:

how do i make a password prompt in QBASIC?

post #1 of 13
Thread Starter 
im in a programming class in school and we are using qbasic. we are making a program that uses data and loops to make a teachers grade book. I'm done with that part but i want to make it so before you can run the program it asks for a password from the user. when typing the password i would like it to show up like this: ********

it is ok if it itsnt possible to make it show as ******

so the question is: how do i make a password prompt in QBASIC?
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
post #2 of 13
No hablo QBASIC. But here is a bump
    
CPUMotherboardGraphicsRAM
T6400 @ 2.00ghz ATI Mobility Radeon HD 4530 4gb 
Hard DriveOptical Drive
297gb? DVD/CD Writer 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
T6400 @ 2.00ghz ATI Mobility Radeon HD 4530 4gb 
Hard DriveOptical Drive
297gb? DVD/CD Writer 
  hide details  
Reply
post #3 of 13
Thread Starter 
thanks for the bump
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
post #4 of 13
Ahhh... good ol' QBASIC. That was the first language I learned.

To answer your question, I have no idea. A quick google search came up with this though, take a look at it.
http://www.ericphelps.com/batch/samp...ssword.bat.txt
post #5 of 13
Thread Starter 
thanks does anyone else know of any other way to do it. just curious!

IN THAT CODE ABOVE I CANT FIND WHERE YOU CHANGE THE PASSWORD
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
post #6 of 13
Code:
 CLS
 SCREEN 12

PRINT "PASSWORD: "
COLOR 0
INPUT PS$
I don't remember what the color number is for black, but basicaly just make it so the background and text are the same color.

Edit: That was just something I remember doing back in high school when I was learning qbasic and was a noob as everything programming.
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte Gigabyte 8gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte Gigabyte 8gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
post #7 of 13
Thread Starter 
yea but i want it so if the password is wrong it will just end the program
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
post #8 of 13
Thread Starter 
can you tell me where in the code that sgtspike posted i can change the password
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
post #9 of 13
Thread Starter 
help
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
post #10 of 13
Thread Starter 
anyone
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › how do i make a password prompt in QBASIC?