-
FYI
Upcoming in VB7.. and GREAT!!! (From FAQ)
Free Threading (ability to do background processing, finally)
t = New Thread(New Threadstart
(AddressOf(BaseClass.Function1))
Structured Exception Handling
No More “On Error GoTo”!
Sub SafeWrite()
Try
Open "Testfile"
.....
Write #1
Catch
Kill "Testfile"
Finally
Close #1
End Try
End Sub
-
-
try
try
catch
is the block
meaning essentially (in layman's terms)
try --- be aware of errors if they occur
catch --- did any occur? if so ...
-
Example:
Code:
Sub SomeSub()
...
Try
'Your commands come here.
Catch
'If VB catches an error it will run the code in here.
Finally
'The final part of the Try scope.
End Try
...
End Sub