WEB

[Asp] switch case 문

AlrepondTech 2013. 6. 19. 10:57
반응형



출처: http://blog.naver.com/cdhpjh?Redirect=Log&logNo=70009445950

text = "맛집정보"
  Select Case (text)
     case "맛집정보"
       titlename = "food"
     case "여행정보"
       titlename = "tour"
     case "개인메모" 
       titlename = "memo"
     case Else :
       titlename = "food"
  End Select

 

____________________________________________________________________

 

case의 조건은 변수형태로 와야함

[출처] [Asp] switch case 문|작성자 ㄱ나니


반응형