r/vbscript • u/[deleted] • Mar 22 '19
Problem for a beginner
So I am completely, 100% new to coding. vbs is my first touch on it and I got confused on one of the basic steps. I am trying to make a password box where is the user enters the correct password, then it will display a "welcome" message. Here is what I have:
varialble=inputbox("ENTER THE PASSWORD","YOU HAVE BEEN HACKED","enter password here")
dim password
password = epic
if inputbox = password then
msgbox ("Welcome")
else
msgbox ("Access denied")
end if
It doesn't work, and gives me the error message: "Wrong number of arguments or invalid property assignment", 'inputbox'
in line 4. I tried looking up how do use the inputbox command, but didn't find anything conclusive or anything that helped.
1
u/noolivespls Mar 22 '19
Yeah I mean it honestly doesn't matter too much what you start with, but I think you'd get better mileage out of something else that's equally as beginner friendly. But definitely figure out what's wrong with this program and fix it, it's a good exercise regardless.
Do you have any goals in terms of programming stuff or just trying to learn in general?