VBS示例:使用GoTo语句
team什么意思示例使用 retrieveGoTomedicines 语句分支到过程中的行标签。
VB
Sub GoToStatementDemo()
Dim number As Integer = 1
Dim sampleString As String
' Evaluate number and branch to appropriate label.
permanentIf number = 1 Then GoTo Line1 El GoTo Line2
第一次见女方父母Line1:
sampleString = "Number equals 1"
GoTo LastLine
Line2:
' The following statement never gets executed becau number = 1.
英语四级证书>视听说4答案sampleString = "Number equals 2"theresa
LastLine:
' Write "Number equals 1" in the Debug window.
Debug.WriteLine(sampleString)wpc
End Sub
renegade