|
Simple Select Case example
| Language: |
ASP |
Unrated
Rated by 0 Users
1 Star = Horrible 5 Stars = Perfect
Rate Code Now
|
| Posted By: |
blake |
| Author Website: |
Differences between ASP and PHP |
| Posted On: |
7/9/2007 |
| Code Views: |
1837 |
This is a simple example of how to use the Select Case functionality in ASP.
|
<% dim myVariable
myVariable = "three"
Select Case myVariable Case "one" response.write("myVariable is one") Case "two" response.write("myVariable is two") Case "three" response.write("myVariable is three") Case Else response.write("myVariable is not one, two, or three") End Select %>
View code in Textarea
This code has not been tested by Your WebCode. Use it at your own risk.
Please report any copyright violations.
|
|