View Single Post
  #1 (permalink)  
Old 06-28-2007, 08:50 AM
mhookem's Avatar
mhookem mhookem is offline
Moderator
 
About:
Join Date: Dec 2006
Location: Chesterfield, UK
Posts: 387
mhookem will become famous soon enoughmhookem will become famous soon enough

Page "Select Case" with VBScript


Hello, I've got a problem getting some VBScript to work. Can anyone point me in the right direction and tell me what I'm doing wrong?

Here is the code:


<body>
<%
Dim myNum
myNum=5
Select Case Number
Case 2
Response.Write("Two")
Case 3
Response.Write("Three")
Case 5
Response.Write("Five")
Else Case
Response.Write("No Number")
End Select
%>
</body>

I keep getting the error message 'An error occurred on the server when processing the URL. Please contact the system administrator'

Thanks

Martin



Reply With Quote