|
-
Nov 9th, 2000, 12:18 PM
#1
Thread Starter
Fanatic Member
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
-
Nov 9th, 2000, 12:35 PM
#2
Fanatic Member
-
Nov 9th, 2000, 03:19 PM
#3
Thread Starter
Fanatic Member
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 ...
-
Nov 13th, 2000, 03:36 PM
#4
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|