I am working on an ASP page that also includes some basic Client Side
validation. I am just starting to work with VBScript on the client so I
threw together a little test file and I keep getting:
Error: Expected ';'
on the first line after <SCRIPT LANGUANGE="VBScript">

I have tried subs, functions, etc... Why is it expecting a semicolon?
<HTML>
<HEAD>
<SCRIPT LANGUANGE="VBScript">

Function Test()

End Function

</SCRIPT>

</HEAD>
<BODY>

</BODY>
</HTML>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Re: Getting Expected ; (semicolon) in simple VBScript only page by Chris

Chris
Mon Mar 01 08:50:56 CST 2004

Try checking your spelling:

<SCRIPT LANGUANGE="VBScript">

You misspelt 'LANGUAGE' so it'll default to client-side Javascript.

My advice, forget VBScript for client-side and take 5 mins to learn
Javascript - it's easy and *every* browser can use it. VBScript is also
pants at client-side stuff anyway - believe me, I tried it for two years and
finally gave up and now I write *everything* (including ASP) in Javascript.

Chris.


"Colin Colin" <ccole@ghs.guthrie.org> wrote in message
news:u9x3Xm5$DHA.2348@TK2MSFTNGP09.phx.gbl...
I am working on an ASP page that also includes some basic Client Side
validation. I am just starting to work with VBScript on the client so I
threw together a little test file and I keep getting:
Error: Expected ';'
on the first line after <SCRIPT LANGUANGE="VBScript">

I have tried subs, functions, etc... Why is it expecting a semicolon?
<HTML>
<HEAD>
<SCRIPT LANGUANGE="VBScript">

Function Test()

End Function

</SCRIPT>

</HEAD>
<BODY>

</BODY>
</HTML>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Getting Expected ; (semicolon) in simple VBScript only page by Tom

Tom
Mon Mar 01 12:57:09 CST 2004

You're getting the error becasue you misspelled the
word 'Language' in your opening <SCRIPT> tag and
therefore, the JScript interpreter is trying to process
your script.

Tom Lavedas
===========

>-----Original Message-----
>I am working on an ASP page that also includes some basic
Client Side
>validation. I am just starting to work with VBScript on
the client so I
>threw together a little test file and I keep getting:
>Error: Expected ';'
>on the first line after <SCRIPT LANGUANGE="VBScript">
>
>I have tried subs, functions, etc... Why is it expecting
a semicolon?
><HTML>
><HEAD>
><SCRIPT LANGUANGE="VBScript">
>
>Function Test()
>
>End Function
>
></SCRIPT>
>
></HEAD>
><BODY>
>
></BODY>
></HTML>
>
>*** Sent via Developersdex http://www.developersdex.com
***
>Don't just participate in USENET...get rewarded for it!
>.
>