Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


A little trouble

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,29897
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> A little trouble
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 A little trouble - 1/14/2006 9:56:07 AM   
  Laughing_Man

 

Posts: 1
Score: 0
Joined: 1/14/2006
Status: offline
Hello everyone.
I just got into the world of VBScripting and WSH so to speak.  As my guide I choose WSH and VBScripting for the absolute beginner.
Whelp i'm having a little trouble getting the first game script to work correctly.  Word for word from the book even went to the website and dl/ed the script.

Reply1 = InputBox("Knock Knock!")

If Reply1 = "Who's there?"  Then

Reply2 = InputBox("Panther!")

If Reply2 = "Panther who?"  Then _
   MsgBox "Panther no panths I'm going swimming."

    If Reply2 <> "Panther who?" Then MsgBox "Incorrect Answer.  Try Again."

End If

If Reply1 <> "Who's there?" then Msg Box "Incorrect Answer.  Try Again."  <-- The trouble seems to be with this line.  I take this out and it works.  I tried adding an End If after this as well but it still will not work.

Anywho, i'd like to figure what the deal is with this program before I move on.
 
 
Post #: 1
 
 RE: A little trouble - 1/14/2006 12:47:02 PM   
  BBistheKing

 

Posts: 107
Score: 0
Joined: 6/21/2005
Status: offline
Remove the space between the  last MsgBox

_____________________________

"Live simply, that others may simply live." - Mahatma Gandhi

(in reply to Laughing_Man)
 
 
Post #: 2
 
 RE: A little trouble - 1/14/2006 2:35:40 PM   
  Laughing_Man

 

Posts: 1
Score: 0
Joined: 1/14/2006
Status: offline
LOL I feel lame.
Thanks

(in reply to Laughing_Man)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> A little trouble Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts