Click here to Skip to main content
15,901,853 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Windows SDK error message Pin
progload22-Aug-05 6:22
progload22-Aug-05 6:22 
GeneralRe: Windows SDK error message Pin
progload22-Aug-05 10:14
progload22-Aug-05 10:14 
GeneralRe: Windows SDK error message Pin
DaveC42691322-Aug-05 10:56
DaveC42691322-Aug-05 10:56 
GeneralRe: Windows SDK error message Pin
DaveC42691325-Aug-05 7:01
DaveC42691325-Aug-05 7:01 
GeneralRe: Windows SDK error message Pin
DaveC4269139-Sep-05 8:43
DaveC4269139-Sep-05 8:43 
QuestionVBer new to VB.net - handles divide by zero? Pin
DaveC42691318-Aug-05 10:35
DaveC42691318-Aug-05 10:35 
AnswerRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus18-Aug-05 15:09
protectorChristian Graus18-Aug-05 15:09 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Dave Kreskowiak19-Aug-05 6:48
mveDave Kreskowiak19-Aug-05 6:48 
Christian Graus wrote:
I don't think you're supposed to use CInt, you should use Convert.ToInt32.

Actually, you can still use CInt without any worries of it being on the chopping block in 2005. CInt is actually faster than using Convert.ToInt32 because CInt's conversion code is compiled in-line with the expression. There's no method call to setup and jump to.


His code is converting the DivideByZero exception to a string before it blows up. This results in the string "Infinity" being returned.

RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus21-Aug-05 13:31
protectorChristian Graus21-Aug-05 13:31 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Dave Kreskowiak21-Aug-05 18:13
mveDave Kreskowiak21-Aug-05 18:13 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus21-Aug-05 18:15
protectorChristian Graus21-Aug-05 18:15 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Dave Kreskowiak22-Aug-05 6:49
mveDave Kreskowiak22-Aug-05 6:49 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus22-Aug-05 11:47
protectorChristian Graus22-Aug-05 11:47 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Dave Kreskowiak23-Aug-05 2:13
mveDave Kreskowiak23-Aug-05 2:13 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus23-Aug-05 13:23
protectorChristian Graus23-Aug-05 13:23 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
progload21-Aug-05 19:03
progload21-Aug-05 19:03 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus21-Aug-05 19:16
protectorChristian Graus21-Aug-05 19:16 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
progload21-Aug-05 21:06
progload21-Aug-05 21:06 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus22-Aug-05 11:43
protectorChristian Graus22-Aug-05 11:43 
AnswerRe: VBer new to VB.net - handles divide by zero? Pin
Daniel132418-Aug-05 16:15
Daniel132418-Aug-05 16:15 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus18-Aug-05 17:09
protectorChristian Graus18-Aug-05 17:09 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Daniel132418-Aug-05 17:25
Daniel132418-Aug-05 17:25 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus18-Aug-05 17:32
protectorChristian Graus18-Aug-05 17:32 
AnswerRe: VBer new to VB.net - handles divide by zero? Pin
progload18-Aug-05 19:38
progload18-Aug-05 19:38 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
DaveC42691319-Aug-05 3:27
DaveC42691319-Aug-05 3:27 

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.