基本上有等待命令吗?

时间:2013-06-28 19:23:45

标签: basic

我正在寻找一个等待命令,这样我就可以在它消失之前阅读授予的访问权限。我到处寻找,我发现等待命令工作..但我不能添加时间,我只能等待。这是我第一次使用它,我正在使用它,因为无论是对于我正在做什么的这个或那个,以及工作方式让我感到困惑。

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 个答案:

答案 0 :(得分:3)

如果您只想“等待”,可以使用sleep

如果您想等待按键,可以使用Console.ReadKey(),如果您使用的是VB。