請舉一個簡單的例子說明Switch 函數的用法.

題目:

請舉一個簡單的例子說明Switch 函數的用法.

解答:

Function MatchUp (CityName As String)
Matchup = Switch(CityName = "London", "English", CityName _
= "Rome", "Italian", CityName = "Paris", "French")
End Function

添加新評論

暱稱
郵箱
網站