Re: Textbox.text, Input to Integer

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Chad Z. Hower aka Kudzu (cpub_at_hower.org)
Date: 05/20/04


Date: Thu, 20 May 2004 15:22:07 +0300


"Cor Ligthert" <notfirstname@planet.nl> wrote in news:OJzQULmPEHA.1392
@TK2MSFTNGP09.phx.gbl:
> The try .... cost a lot of time when there is an exception, while the only
> error can be that the values are not numeric.

Unless you are in a loop the time overhead is insignificant. Getting results
from a user input and even triggering one catch is literally no overhead.

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
      "Programming is an art form that fights back"
Get your ASP.NET in gear with IntraWeb!
  http://www.atozed.com/IntraWeb/


Relevant Pages

  • Re: Textbox.text, Input to Integer
    ... cost a lot of time when there is an exception, ... > Unless you are in a loop the time overhead is insignificant. ... > from a user input and even triggering one catch is literally no overhead. ... exception is catched, so this may reduce user experience. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Textbox.text, Input to Integer
    ... >> Unless you are in a loop the time overhead is insignificant. ... >> results from a user input and even triggering one catch is literally no ... > exception is catched, so this may reduce user experience. ...
    (microsoft.public.dotnet.languages.vb)