View Single Post
Old Apr 25th, 2005, 11:27 AM   #8
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
You want:
Try
 (do something)
Catch Err as Exception
 (if an error occurs, Err defines it)
Finally
 (always executed)
End Try
Finally, VB got some proper error handling courtesy of Delphi. VB.NET only, though. I'd also recommend it because the GDI methods are a lot more stable, and won't produce random errors.
Rory is offline   Reply With Quote