Register    Login    Forum    Search    FAQ

Board index » General » Off Topic




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: PASSWORD STATEMENT
 Post Posted: Wed Feb 09, 2005 4:04 pm 
 
IM MAKING A PROGRAM, AND I WANTED TO HAVE LIKE A PASSWORD TO GET INTO THE PROGRAM, BUT I DONT KNOW HOW TO GO ABOUT IT...CAN YOU HELP ME OUT?


Top 
  
 
 Post subject:
 Post Posted: Wed Feb 22, 2006 1:59 pm 
Offline
Newbie

Joined: Sat Feb 11, 2006 6:04 pm
Posts: 7
Location: Tholen
If you are working with QB 4.5 you can put in your Safe word and then ask the question:Put in your Safeword.
In the next programsentence you control this word by asking :If word=word then continue or goto ..,if not then stop or end! :!:


Top 
 Profile  
 
 Post subject: Re: PASSWORD STATEMENT
 Post Posted: Mon Dec 18, 2006 6:02 pm 
Offline
Newbie

Joined: Mon Dec 18, 2006 5:52 pm
Posts: 3
NENNERT4 wrote:
IM MAKING A PROGRAM, AND I WANTED TO HAVE LIKE A PASSWORD TO GET INTO THE PROGRAM, BUT I DONT KNOW HOW TO GO ABOUT IT...CAN YOU HELP ME OUT?

Try creating a basic (unencrprted) password first:
create file pass.dat:
Code:
password_here

in file.bas
Code:
file$="pass.gam"
....
tmp = FREEFILE
open it for append (creates file if no exist)
close it
....
open it for read
read first line into password
close it
.....

ask for password with print
loop until a$=enter
a$=inkey$
s$ = s$+a$
end loop
if s$ = pass

that was in psudocode. If you want full QB code wait for my tutorial.


Top 
 Profile  
 
 Post subject:
 Post Posted: Wed Jul 11, 2007 8:37 pm 
Offline
Newbie

Joined: Wed Jul 11, 2007 8:33 pm
Posts: 1
Okay, a simple one for QBasic would be:
Code:
cls
Print "Please login:"
dim sPassword as string
input "Password:"; sPassword
if sPassword = "you password here" then beep
else end

That's a very basic way of doing it, but you can expaned from there.

_________________
You must have mistaken me for someone who cared.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 4 posts ] 

Board index » General » Off Topic


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
News News  Site map Site map  SitemapIndex SitemapIndex  RSS Feed RSS Feed  Channel list Channel list


phpBB SEO