VBScript Error Expected end of statement

I Have Been Trying To Make My Computer Greet Me But It Keeps Giving Me This Error Here Is The Coding

Dim speaks, speech
speaks="Welcome Back Joshua,I Missed You"
Set speech="CreateObject"sapi.spvoice""
speech.Speak speaks;

Can Someone Help? The Error Is On Line 3

July 7th, 2015 11:34am

Looks like you have unbalanced quotes on that line.
Free Windows Admin Tool Kit Click here and download it now
July 7th, 2015 11:40am

Set speech="CreateObject"sapi.spvoice""

Set speech = CreateObject("sapi.spvoice")

Do not write code that you do not understand.  Start by looking up examples and reading the training material for the language.  It will save you a lot of time and frustration.

It alos looks like you copied this from a web site and copied the HTML and not just the text.


July 7th, 2015 11:57am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics