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: