VB語法  Try...Catch...Finally 範例

Try
    Process.Start("http://www.microsoft.com")
Catch ex As Exception
    MsgBox("Can't load Web page" & vbCrLf & ex.Message)
End Try

 

https://docs.microsoft.com/zh-tw/dotnet/visual-basic/language-reference/statements/try-catch-finally-statement

 

文章標籤

阿倫 發表在 痞客邦 留言(0) 人氣()