Hi All!

I have the following in a vb script:

option explicit
Response.Expires = -1
Server.ScriptTimeout = 600

The script gets imported in the following way:
<script language="VBscript" runat=server src="lib/upload/aspUpload.asp">
</script>

I get the following error:

Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/RobertMarkBram/lib/upload/aspUpload.asp, line 10
option explicit


I do *not* have this in my script:
<%@ LANGUAGE=VBSCRIPT EnableSessionState=False %>
<%
Option Explicit
%>

Because the script is an external vb library.. (I use JavaScript on the same
page).

Can anyone suggest how I can get option explicit in there?

Thanks for any advice!

Rob
:)

Re: Error with option explicit by Bob

Bob
Sun Aug 15 09:16:16 CDT 2004

Robert Mark Bram wrote:
> Hi All!
>
> I have the following in a vb script:
>
> option explicit
> Response.Expires = -1
> Server.ScriptTimeout = 600
>
> The script gets imported in the following way:
> <script language="VBscript" runat=server
> src="lib/upload/aspUpload.asp"> </script>
>
> I get the following error:
>
> Error Type:
> Microsoft VBScript compilation (0x800A0400)
> Expected statement
> /RobertMarkBram/lib/upload/aspUpload.asp, line 10
> option explicit
>
>
> I do *not* have this in my script:
> <%@ LANGUAGE=VBSCRIPT EnableSessionState=False %>

irrelevant

> <%
> Option Explicit

Are you sure?

"Option Explicit" can only be used one in a page. If it appears in an
included file, it cannot appear in other included files, nor in the "host"
page.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"