View Full Version : Expected 'End'
dagaffer
12-26-2002, 09:48 PM
OK this one has really got me...
Error Type:
Microsoft VBScript compilation (0x800A03F6)
Expected 'End'
/Gaffer/testscripts/default.asp, line 331
Line 331:
Case "whatsnew"
All it is, is in the middle of a very long Select Case...
Any clues:confused: ?
Thanx, gaffer
scroots
12-26-2002, 09:51 PM
if its in the middle shouldn`t it be double quoted or something stupid?
scroots
Leeus
12-26-2002, 09:53 PM
You do have an end select right??
Roelf
12-26-2002, 10:13 PM
if you want an answer, you really should post more code :D
dagaffer
12-26-2002, 10:29 PM
The script is basically 2 run outer files through the main page:
<%
Select Case page
Case "2dwallpreview"
%>
<!--#include file="2dwallpreview.txt"-->
<%
Case "3dwallpreview"
%>
<!--#include file="3dwallpreview.txt"-->
<%
Case "anims"
%>
<!--#include file="anims.txt"-->
<%
Case "anims2"
%>
<!--#include file="anims2.txt"-->
<%
Case "email"
%>
<!--#include file="emailtest.txt"-->
<%
Case "pics"
%>
<!--#include file="pics.txt"-->
<%
Case "thanx"
%>
<!--#include file="thanxtest.txt"-->
<%
Case "whatsnew"
%>
<!--#include file="whatsnew.txt"-->
<%
Case "scripts"
%>
<!--#include file="scripts.txt"-->
<%
Case Else
%>
<!--#include file="default.txt"-->
<%
End Select
%>
is the whole select case.
"page" is defined earlier in the looooong page...
Leeus
12-26-2002, 10:31 PM
Zip it up and post it? That bit looks fine! What line number etc??
dagaffer
12-26-2002, 10:36 PM
heres da whole thing....
Leeus
12-26-2002, 10:43 PM
Worked fine for me after putting in some dummy txt files, the whole page looks fine too!
dagaffer
12-26-2002, 10:45 PM
hmm, thats bad... Im gonna have 2 speak 2 my web host... who just went on holiday.... Argh:mad: ! Oh well, thanx anyway!:thumbsup:
Leeus
12-26-2002, 10:47 PM
It shouldn't be the hosting ASP is supported as you wouldn't get that message, it looks like when you run it that it doesn't like the else statement, what are you clicking when this happens?
Have you not considered a DB Backend?
dagaffer
12-26-2002, 10:54 PM
this is the default page (when my site is 1st opened). & as i have no idea what the last word means that you posted, no iv never considered that...
dagaffer
12-26-2002, 11:10 PM
O!M!G! I am sooooo sorry! 4 this but I've found what's going on!
It's in the "thanxtest.txt". I also had a select case in that, but missed out a "%" leaving it with no end to the select case...
So that's sorted out now:o
Sorry!
Thanx 4 ur time neway!
Gaffer
Mhtml
12-27-2002, 04:28 AM
gaffer I'm always on hand to answer anything you need to know about the server. I've talked a lot with Morgoth so I'm down with configuration for the most part.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.