NOPOPNOSTYLE
IS-IT--Management
Hi
Below is a basic page I've written using the Select Case Statement, according to all the column inches the syntax is correct however I get a Microsoft VBScript compilation error '800a0400'.
Help
Lord Exell
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<%
AUPTIME=Cint(8)
Select Case(AUPTIME)
Case 4 To 5
AUPTIME_SCALE=2
Case 6 To 11
AUPTIME_SCALE=5
End Select
%>
<body>
The Score is <%Response.Write(AUPTIME_SCALE)'this should be writing to the screen "5"%>
<%
'below is the error message I get when I browse this page
'Microsoft VBScript compilation error '800a0400'
'Expected statement
'/case.asp, line 10
'Case 4 To 5
'-------^
%>
</body>
</html>
Below is a basic page I've written using the Select Case Statement, according to all the column inches the syntax is correct however I get a Microsoft VBScript compilation error '800a0400'.
Help
Lord Exell
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<%
AUPTIME=Cint(8)
Select Case(AUPTIME)
Case 4 To 5
AUPTIME_SCALE=2
Case 6 To 11
AUPTIME_SCALE=5
End Select
%>
<body>
The Score is <%Response.Write(AUPTIME_SCALE)'this should be writing to the screen "5"%>
<%
'below is the error message I get when I browse this page
'Microsoft VBScript compilation error '800a0400'
'Expected statement
'/case.asp, line 10
'Case 4 To 5
'-------^
%>
</body>
</html>