Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: using IsNumeric Function in c# Pin
Mogaambo15-Jul-08 0:16
Mogaambo15-Jul-08 0:16 
AnswerRe: using IsNumeric Function in c# Pin
stancrm15-Jul-08 0:19
stancrm15-Jul-08 0:19 
GeneralRe: using IsNumeric Function in c# Pin
sumit703415-Jul-08 0:43
sumit703415-Jul-08 0:43 
GeneralRe: using IsNumeric Function in c# Pin
Le centriste15-Jul-08 1:59
Le centriste15-Jul-08 1:59 
GeneralRe: using IsNumeric Function in c# Pin
leppie15-Jul-08 2:48
leppie15-Jul-08 2:48 
GeneralRe: using IsNumeric Function in c# Pin
Le centriste15-Jul-08 2:53
Le centriste15-Jul-08 2:53 
GeneralRe: using IsNumeric Function in c# Pin
leppie15-Jul-08 3:16
leppie15-Jul-08 3:16 
GeneralRe: using IsNumeric Function in c# Pin
Le centriste15-Jul-08 3:40
Le centriste15-Jul-08 3:40 
Because there are better alternatives in the .NET library. Furthermore, they are legacy.

We had a guy here who was using the CInt function to simply convert a string into an integer (he was using VB.NET and was a former VB programmer). His algorithm seemed to be working well but the numbers were not right. I suggested that he uses Int32.Parse instead, just for the heck of it. Coincidentally, Int32.Parse threw an exception instead of converting the number. It turned out the string was not a number, but the scientific representation of a number. CInt was making the best of it by taking the interger part of the number, which was wrong in this case.

The reason why Microsoft created VB.NET and added support for the VB runtime is because they wanted to lure VB programmers and make them embrace the .NET platform.
GeneralRe: using IsNumeric Function in c# Pin
Dave Doknjas16-Jul-08 4:30
Dave Doknjas16-Jul-08 4:30 
GeneralRe: using IsNumeric Function in c# Pin
Le centriste16-Jul-08 4:33
Le centriste16-Jul-08 4:33 
GeneralRe: using IsNumeric Function in c# Pin
Le centriste16-Jul-08 4:34
Le centriste16-Jul-08 4:34 
GeneralRe: using IsNumeric Function in c# Pin
Dave Doknjas16-Jul-08 14:19
Dave Doknjas16-Jul-08 14:19 
AnswerRe: using IsNumeric Function in c# Pin
mark_w_15-Jul-08 0:27
mark_w_15-Jul-08 0:27 
AnswerRe: using IsNumeric Function in c# Pin
Nirandas15-Jul-08 1:27
Nirandas15-Jul-08 1:27 
AnswerRe: using IsNumeric Function in c# Pin
Le centriste15-Jul-08 1:58
Le centriste15-Jul-08 1:58 
Question5 Star Rating Control using CallBack Pin
Neeraj Kr14-Jul-08 23:45
Neeraj Kr14-Jul-08 23:45 
GeneralRe: 5 Star Rating Control using CallBack Pin
Simon P Stevens15-Jul-08 1:32
Simon P Stevens15-Jul-08 1:32 
QuestionWeb Browser CONTROL Pin
hadad14-Jul-08 21:58
hadad14-Jul-08 21:58 
AnswerRe: Web Browser CONTROL Pin
sumit703415-Jul-08 0:07
sumit703415-Jul-08 0:07 
Questionwindows service Pin
arkiboys14-Jul-08 21:45
arkiboys14-Jul-08 21:45 
AnswerRe: windows service Pin
J4amieC14-Jul-08 21:53
J4amieC14-Jul-08 21:53 
GeneralRe: windows service Pin
arkiboys14-Jul-08 21:56
arkiboys14-Jul-08 21:56 
GeneralRe: windows service Pin
J4amieC14-Jul-08 22:07
J4amieC14-Jul-08 22:07 
GeneralRe: windows service Pin
arkiboys14-Jul-08 22:16
arkiboys14-Jul-08 22:16 
GeneralRe: windows service Pin
J4amieC14-Jul-08 22:42
J4amieC14-Jul-08 22:42 

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.