![]() |
"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 |
vb script is not a language i am familiar with, but this has the setup of a switch statement of other languages, there is usually a break command at the end of each case to prevent incorrect output. |
VBScript Quote:
Is there a possibility that it has something to do with my settings? I've been practicing using IIS 7.0, and I've created cookies, Sessions and all sorts, but this just doesn't want to work!! Regards Martin |
Quote:
Select Case myNum Case 2 do stuff Case 3 do diff stuff end select VBscript does not have a break statement. kjb |
I do not think the OP will bother with your reply, he/she was last seen in this thread on the 28th June 2007. Leave old threads to wither and die... |
All times are GMT -4. The time now is 05:26 AM. |
Copyright © 2005-2013 SysChat.com