Click here to Skip to main content
15,899,754 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Read a string Pin
manish.m.tawde1-Jul-04 0:48
manish.m.tawde1-Jul-04 0:48 
GeneralList Boxes Pin
Glen Conaway29-Jun-04 8:55
Glen Conaway29-Jun-04 8:55 
GeneralRe: List Boxes Pin
Dave Kreskowiak29-Jun-04 9:33
mveDave Kreskowiak29-Jun-04 9:33 
GeneralRe: List Boxes Pin
Glen Conaway29-Jun-04 10:43
Glen Conaway29-Jun-04 10:43 
GeneralRe: List Boxes Pin
Name Removed29-Jun-04 12:03
Name Removed29-Jun-04 12:03 
GeneralRe: List Boxes Pin
Glen Conaway29-Jun-04 12:35
Glen Conaway29-Jun-04 12:35 
GeneralRe: List Boxes Pin
Dave Kreskowiak29-Jun-04 15:47
mveDave Kreskowiak29-Jun-04 15:47 
QuestionWhen is the right time to throw exceptions? Pin
kowplunk29-Jun-04 5:43
kowplunk29-Jun-04 5:43 
I am at the stage that I realized that alot of my exceptions are being handled poorly, and have now created a class that will handle the exceptions that are thrown at one point in the program rather than at the many that existed before. (based on the article on exception handling on this site)

BUT, now that I am going through I see alot of places that I am unsure whether it is a place that should be within a try/catch block or not.

Here is a simple example:
let's say that you are about to create an object that requires one or more params. If the params are not there you do not want the code to continue because obviously the later code requires the object. Now this seems to me at this point to enclose this within a try/catch block. Is that wrong, because this kind of thinking would result in ALOT of t/c blocks throughout the program, and I know that they can take their toll on your system.

I guess that it is things like this that I am want to make sure of because I don't want to have to make a bunch of changes a couple weeks down the road to changes that I need to make now.

Thanks for the help.
AnswerRe: When is the right time to throw exceptions? Pin
kowplunk29-Jun-04 5:46
kowplunk29-Jun-04 5:46 
GeneralRe: When is the right time to throw exceptions? Pin
Blaiser29-Jun-04 6:26
Blaiser29-Jun-04 6:26 
GeneralRe: When is the right time to throw exceptions? Pin
kowplunk29-Jun-04 7:10
kowplunk29-Jun-04 7:10 
GeneralRe: When is the right time to throw exceptions? Pin
Dave Kreskowiak29-Jun-04 8:07
mveDave Kreskowiak29-Jun-04 8:07 
GeneralRe: When is the right time to throw exceptions? Pin
kowplunk29-Jun-04 7:12
kowplunk29-Jun-04 7:12 
GeneralRe: When is the right time to throw exceptions? Pin
Blaiser29-Jun-04 10:02
Blaiser29-Jun-04 10:02 
GeneralRe: When is the right time to throw exceptions? Pin
kowplunk29-Jun-04 10:07
kowplunk29-Jun-04 10:07 
GeneralRe: When is the right time to throw exceptions? Pin
Kevin McFarlane29-Jun-04 11:53
Kevin McFarlane29-Jun-04 11:53 
GeneralOperator variable reference Pin
WESHILL29-Jun-04 5:22
WESHILL29-Jun-04 5:22 
GeneralRe: Operator variable reference Pin
Dave Kreskowiak29-Jun-04 7:56
mveDave Kreskowiak29-Jun-04 7:56 
GeneralRe: Operator variable reference Pin
WESHILL29-Jun-04 8:24
WESHILL29-Jun-04 8:24 
GeneralRe: Operator variable reference Pin
Dave Kreskowiak29-Jun-04 8:34
mveDave Kreskowiak29-Jun-04 8:34 
GeneralRe: Operator variable reference Pin
WESHILL29-Jun-04 8:56
WESHILL29-Jun-04 8:56 
QuestionWinForms component parented as an MDI child in a Win32 app? Pin
Blaiser29-Jun-04 4:33
Blaiser29-Jun-04 4:33 
AnswerRe: WinForms component parented as an MDI child in a Win32 app? Pin
Dave Kreskowiak29-Jun-04 7:58
mveDave Kreskowiak29-Jun-04 7:58 
GeneralCould not set the focus to a text object Pin
dj4198429-Jun-04 4:19
dj4198429-Jun-04 4:19 
GeneralRe: Could not set the focus to a text object Pin
Blaiser29-Jun-04 6:30
Blaiser29-Jun-04 6:30 

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.