Click here to Skip to main content
15,028,757 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioni need to manage exceptions how can i ? Pin
Hasan Jaffal7-May-07 3:58
MemberHasan Jaffal7-May-07 3:58 
AnswerRe: i need to manage exceptions how can i ? Pin
Rupesh Kumar Swami7-May-07 4:30
MemberRupesh Kumar Swami7-May-07 4:30 
GeneralRe: i need to manage exceptions how can i ? Pin
Hasan Jaffal7-May-07 4:39
MemberHasan Jaffal7-May-07 4:39 
GeneralRe: i need to manage exceptions how can i ? Pin
Rupesh Kumar Swami7-May-07 4:49
MemberRupesh Kumar Swami7-May-07 4:49 
GeneralRe: i need to manage exceptions how can i ? Pin
Hasan Jaffal7-May-07 4:56
MemberHasan Jaffal7-May-07 4:56 
GeneralRe: i need to manage exceptions how can i ? Pin
Rupesh Kumar Swami7-May-07 5:03
MemberRupesh Kumar Swami7-May-07 5:03 
GeneralRe: i need to manage exceptions how can i ? Pin
Hasan Jaffal7-May-07 5:11
MemberHasan Jaffal7-May-07 5:11 
AnswerRe: i need to manage exceptions how can i ? Pin
Christian Graus7-May-07 13:07
protectorChristian Graus7-May-07 13:07 
First of all, code that's wrapped in hundreds of try/catch statements is bad code. You should first check, for example, if you may be about to divide by zero. You should use int.tryparse,double.tryparse, etc, to see if a string contains the value type you expect. You should allow casting from double to int, unless you have special reasons not to.

An exception should be, well, exceptional. It shouldn't be something that you expect to happen in normal flow.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: i need to manage exceptions how can i ? Pin
Hasan Jaffal7-May-07 13:15
MemberHasan Jaffal7-May-07 13:15 
QuestionGetObject function question Pin
ganeshpulsars7-May-07 3:42
Memberganeshpulsars7-May-07 3:42 
AnswerRe: GetObject function question Pin
Dave Kreskowiak7-May-07 7:07
mveDave Kreskowiak7-May-07 7:07 
GeneralRe: GetObject function question Pin
ganeshpulsars7-May-07 17:57
Memberganeshpulsars7-May-07 17:57 
AnswerRe: GetObject function question Pin
nlarson117-May-07 7:10
Membernlarson117-May-07 7:10 
GeneralRe: GetObject function question Pin
ganeshpulsars7-May-07 18:09
Memberganeshpulsars7-May-07 18:09 
GeneralRe: GetObject function question Pin
Dave Kreskowiak8-May-07 2:02
mveDave Kreskowiak8-May-07 2:02 
GeneralRe: GetObject function question Pin
ganeshpulsars8-May-07 20:06
Memberganeshpulsars8-May-07 20:06 
QuestionWebbrowser Control in VB6 Pin
Kumaran21cen7-May-07 0:34
MemberKumaran21cen7-May-07 0:34 
AnswerRe: Webbrowser Control in VB6 Pin
nlarson117-May-07 7:25
Membernlarson117-May-07 7:25 
QuestionSQL Server Error Pin
Vimalsoft(Pty) Ltd7-May-07 0:07
professionalVimalsoft(Pty) Ltd7-May-07 0:07 
AnswerRe: SQL Server Error Pin
Dave Kreskowiak7-May-07 7:05
mveDave Kreskowiak7-May-07 7:05 
QuestionSubscript out of range Pin
Vimalsoft(Pty) Ltd6-May-07 22:48
professionalVimalsoft(Pty) Ltd6-May-07 22:48 
AnswerRe: Subscript out of range Pin
Guffa6-May-07 23:54
MemberGuffa6-May-07 23:54 
AnswerRe: Subscript out of range Pin
P P Vilsad7-May-07 3:18
MemberP P Vilsad7-May-07 3:18 
GeneralRe: Subscript out of range Pin
Guffa7-May-07 6:01
MemberGuffa7-May-07 6:01 
QuestionCopy string from 1st text file and replace thos string Pin
pankajs3k6-May-07 21:58
Memberpankajs3k6-May-07 21:58 

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.