Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 1675
Number of posts: 4764

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
im desperate for help Posted by just_learning on 19 Jan 2005 at 4:14 PM
hi

i made a pasword form now i have to integrate into the project and im stuck

what he needs is when the application is loaded a screen appears where a password must be entered and if after three tries the application should close automatically the password needs to be included in the code in the form of a global constant in the code module and once a valid password is entered the password screen should be unloaded and the main screen displayed.

i stuck cause im not sure how to code this

your help is greatly appreciated
Report
Re: im desperate for help Posted by Azurith_XEON on 20 Jan 2005 at 8:30 AM
hey, im' not sure if this will work, but it's worth a try anyways.

CLS
passw1x$=password
INPUT "Please enter your password: ";password1$,
Print "Validating Password..."
Wait (5000)
If password1$=passw1x$
print "Authorization correct."
else
passwxx#=1
endif
If password1$=passw1x$
print "Welcome"
else
passwxx#=passwxx#+1
If passwxx#=3 then exit
If password1$=passw1x$ then goto main
Main:

i'm not sure if it will accept the variables, if it does, change the password on the second line to the password you want. also if you don't want to wait 5 seconds then remove that line. i really don't know if this will work though, it's my first try at password blocking. so i hope it helps.

~~Azurith_Xeon



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.