Click here to Skip to main content
15,894,330 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDETECT LAST PAGE WHEN PRINT..PLS HELP Pin
vbbeg14-Jan-07 19:30
vbbeg14-Jan-07 19:30 
AnswerRe: Msg for DAVE KRESKOWIAK Pin
Colin Angus Mackay14-Jan-07 22:32
Colin Angus Mackay14-Jan-07 22:32 
GeneralRe: Msg for DAVE KRESKOWIAK Pin
Colin Angus Mackay15-Jan-07 1:39
Colin Angus Mackay15-Jan-07 1:39 
QuestionTry-Catch blocks? Pin
Rahithi14-Jan-07 16:48
Rahithi14-Jan-07 16:48 
AnswerRe: Try-Catch blocks? Pin
Christian Graus14-Jan-07 18:21
protectorChristian Graus14-Jan-07 18:21 
AnswerRe: Try-Catch blocks? Pin
The ANZAC14-Jan-07 19:30
The ANZAC14-Jan-07 19:30 
AnswerRe: Try-Catch blocks? Pin
vengaqua14-Jan-07 21:19
vengaqua14-Jan-07 21:19 
AnswerRe: Try-Catch blocks? Pin
roo42615-Jan-07 1:50
roo42615-Jan-07 1:50 
This is the format I use

Try
'Code that can cause problems

Catch ex As System.Exception
'ex.Message - Give you the error message
'ex.StackTrace - Gives you more details on the error, like what line number caused it.
' These are great for trouble shooting your app at design time

Finally
'Cleanup code that runs no matter what happens, even if App shuts down

End Try


My Question to add to this subjet would be : How do you Identify a particular Exception? (ex: File Not Found)

In the old "On Error..." statment it reported an error message and error number, the number could then be used in a IF or SELECT CASE statment. In the new TRY...CATCH the only way I have found was to check for the message witch can be a very long string.

Hope this helps you.....and me!!!! Smile | :)
Rob
AnswerRe: Try-Catch blocks? Pin
Rahithi15-Jan-07 17:11
Rahithi15-Jan-07 17:11 
QuestionConnecting to Access Database on remote server Pin
fatali814-Jan-07 12:03
fatali814-Jan-07 12:03 
AnswerRe: Connecting to Access Database on remote server Pin
Dave Kreskowiak14-Jan-07 13:10
mveDave Kreskowiak14-Jan-07 13:10 
GeneralRe: Connecting to Access Database on remote server Pin
fatali814-Jan-07 15:32
fatali814-Jan-07 15:32 
GeneralRe: Connecting to Access Database on remote server Pin
Dave Kreskowiak14-Jan-07 16:16
mveDave Kreskowiak14-Jan-07 16:16 
GeneralRe: Connecting to Access Database on remote server Pin
fatali814-Jan-07 16:48
fatali814-Jan-07 16:48 
GeneralRe: Connecting to Access Database on remote server Pin
fatali814-Jan-07 17:10
fatali814-Jan-07 17:10 
GeneralRe: Connecting to Access Database on remote server Pin
Dave Kreskowiak14-Jan-07 18:26
mveDave Kreskowiak14-Jan-07 18:26 
GeneralRe: Connecting to Access Database on remote server Pin
fatali815-Jan-07 3:53
fatali815-Jan-07 3:53 
GeneralRe: Connecting to Access Database on remote server Pin
Dave Kreskowiak15-Jan-07 5:29
mveDave Kreskowiak15-Jan-07 5:29 
GeneralRe: Connecting to Access Database on remote server Pin
fatali815-Jan-07 5:40
fatali815-Jan-07 5:40 
QuestionSimple question on text? Pin
rudemusik14-Jan-07 6:59
rudemusik14-Jan-07 6:59 
AnswerRe: Simple question on text? Pin
MatrixCoder14-Jan-07 8:01
MatrixCoder14-Jan-07 8:01 
GeneralRe: Simple question on text? Pin
rudemusik14-Jan-07 9:23
rudemusik14-Jan-07 9:23 
GeneralRe: Simple question on text? Pin
MatrixCoder14-Jan-07 11:17
MatrixCoder14-Jan-07 11:17 
GeneralRe: Simple question on text? Pin
Christian Graus14-Jan-07 11:58
protectorChristian Graus14-Jan-07 11:58 
AnswerRe: Simple question on text? Pin
Guffa14-Jan-07 11:39
Guffa14-Jan-07 11:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.