Setting a variable using Select Case
Hi all!
Sorry if this is a dumb question but I am very new to ASP. I am trying to use a select case to set a variable but it doesn't seem to work:
Select case strSearchCat
case "option1"
strSearchVia = "Member ID='"
case "option2"
strSearchVia = "Forename='"
End Select
Is it not possible to to set a variable in this way?? In the book (beginning Active Server Pages 3.0) all examples are given using the response.write command, e.g.
Select case strSearchCat
case "option1"
Response.Write "you have chosen option 1"
Case "Option2"
Response.Write "you have chosen option 2"
End Select
Any help very, very much appreciated!!
THANKYOU!
ADAM
|