Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
Sub bar2()
|
||||
Dim x = 0
|
||||
GoTo label
|
||||
x = 5
|
||||
label:
|
||||
Console.WriteLine(x)
|
||||
End Sub
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
Sub foo()
|
||||
On Error GoTo label
|
||||
'do something dangerous
|
||||
Exit Sub
|
||||
label:
|
||||
Console.WriteLine("Operation Failed")
|
||||
End Sub
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
Sub foo2()
|
||||
On Error Resume Next
|
||||
Operation1()
|
||||
Operation2()
|
||||
Operation3()
|
||||
Operation4()
|
||||
End Sub
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
Sub Foo1()
|
||||
If Not WorkNeeded() Then Exit Sub
|
||||
DoWork()
|
||||
End Sub
|
||||
|
||||
Sub Foo2()
|
||||
If Not WorkNeeded() Then Return
|
||||
DoWork()
|
||||
End Sub
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
Function Foo3()
|
||||
Foo3 = CalculateValue()
|
||||
If Not MoreWorkNeeded() Then Exit Function
|
||||
Foo3 = CalculateAnotherValue()
|
||||
End Function
|
||||
|
||||
Function Foo4()
|
||||
Dim result = CalculateValue()
|
||||
If Not MoreWorkNeeded() Then Return result
|
||||
Return CalculateAnotherValue()
|
||||
End Function
|
||||
Loading…
Add table
Add a link
Reference in a new issue