3

Im looking for a wait command so I can read the access granted before it goes away. Ive looked everywhere and i found that the wait command worked.. but i cant add a time to it, i can only put wait. this is the first time ive worked with this, im using it because its either this or forth for what im doing, and the way forth works is confusing to me.

input"Enter Password: "; pass$

realPass$="meow"

if pass$=realPass$ then goto[areTheSame]

goto[areNotTheSame]

[areNotTheSame]
print("access denied")
goto[end]

[areTheSame]
print("access granted")
wait
goto[end]

[end]
cls

1 Answers1

3

If you want it to just "wait" you can use sleep.

If you want to wait for a key press you can use Console.ReadKey() if you are using VB.

daiuto
  • 486
  • 2
  • 10
  • 20
  • 1
    Thank you for your time. I tried this and it didnt compile, it said there was an error at that line. Maybe im using a funky version of basic? – Adam the Mediocre Jun 28 '13 at 19:51
  • 1
    @user2302197 This might be what you're looking for: http://justbasic.conforums.com/index.cgi?board=nldiscuss&action=display&num=1110684584 – daiuto Jun 28 '13 at 19:54
  • thanks a ton. I found out im using ms-basic.. the 1975 one. Im using this to write my code outside of the game, and then copying it into there from the justBasic program. – Adam the Mediocre Jun 28 '13 at 20:01
  • Um, I think Console.ReadKey will only work in VB.net, which isn't the flavor of BASIC the OP is using. – Andy Jun 28 '13 at 20:17