Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
SLAYER2
19
Years of Service
User Offline
Joined: 1st Jun 2005
Location:
Posted: 4th Jun 2005 03:49
im currently making a program that would need the user to login, ive currently been using this code

this doesn't quite work though.
i would be gratfull for any help
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 4th Jun 2005 07:47
Just use something like this

rem Make password
input "password";password$
if password$="password name"
print "cool"

______________________________________
<<<<I can program using anything>>>>
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Jun 2005 09:01
It would help if you told us what it does/doesn't do, and what you expect it to do.

The only issue I see is that you need an extra chunk of code to control what happens when Enter is pressed, and the password is wrong

BatVink
SLAYER2
19
Years of Service
User Offline
Joined: 1st Jun 2005
Location:
Posted: 4th Jun 2005 19:59
basicly ive got a screen with some writting on it, i press enter to clear the screen and then go to the screen where i enter the password, one of the problems is that when i press enter to clear the previeos screen an asterix will appear on the password screen, when ive put the password in and press enter another asterix just appears,
hope this helps.
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 5th Jun 2005 02:05
What BatVink said -
What:


?

i.e., If the Enter key is pressed, but the password that was entered is WRONG.

How's my typing? Phone 0800-GO-TO-HELL
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 5th Jun 2005 04:24
You could always add a line to backspace everytime it sees a return.

if asc(mid$(new$,n))=13 then line$=left$(line$,len(line$)-1)

It's your code just with 13 instead of 8. Put that last in the for next loop (right before next n) and you won't ever see a return key add to line$.
SLAYER2
19
Years of Service
User Offline
Joined: 1st Jun 2005
Location:
Posted: 6th Jun 2005 21:37
thank, i'll try that

Login to post a reply

Server time is: 2025-05-22 20:17:13
Your offset time is: 2025-05-22 20:17:13