select case

上一篇 / 下一篇  2012-10-22 20:56:41 / 个人分类:VBScript

Function myFun(num)
 Select Case num
   Case "Cash"
    msgbox "You are going to pay cash"
   Case "Visa"
    msgbox "You are going to pay with visa"
   Case "Amex"
    msgbox "You are going to pay with American Express"
   Case Else
    msgbox "Unknown method of payment"
 End select
End Function

Call myFun("Cash")

TAG:

 

评分:0

我来说两句

日历

« 2024-05-02  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 4414
  • 日志数: 14
  • 建立时间: 2012-10-16
  • 更新时间: 2013-05-14

RSS订阅

Open Toolbar