Click here to Skip to main content
15,912,897 members
Home / Discussions / C#
   

C#

 
Questionto get record count of SQL Query...? Pin
Raheem MA15-Jul-08 0:52
Raheem MA15-Jul-08 0:52 
AnswerRe: to get record count of SQL Query...? Pin
mark_w_15-Jul-08 0:57
mark_w_15-Jul-08 0:57 
AnswerRe: to get record count of SQL Query...? Pin
Nirandas15-Jul-08 1:22
Nirandas15-Jul-08 1:22 
GeneralRe: to get record count of SQL Query...? Pin
Raheem MA15-Jul-08 1:58
Raheem MA15-Jul-08 1:58 
AnswerRe: to get record count of SQL Query...? Pin
Wendelius15-Jul-08 6:45
mentorWendelius15-Jul-08 6:45 
QuestionUsing value in string variable as "type" Pin
dan!sh 15-Jul-08 0:51
professional dan!sh 15-Jul-08 0:51 
GeneralRe: Using value in string variable as "type" Pin
dan!sh 15-Jul-08 0:59
professional dan!sh 15-Jul-08 0:59 
AnswerRe: Using value in string variable as "type" Pin
S. Senthil Kumar15-Jul-08 9:08
S. Senthil Kumar15-Jul-08 9:08 
QuestionDisable screensaver through C# app with out admin rights Pin
CNReddy15-Jul-08 0:31
CNReddy15-Jul-08 0:31 
AnswerRe: Disable screensaver through C# app with out admin rights Pin
Simon P Stevens15-Jul-08 1:29
Simon P Stevens15-Jul-08 1:29 
AnswerRe: Disable screensaver through C# app with out admin rights Pin
Thomas Stockwell15-Jul-08 8:29
professionalThomas Stockwell15-Jul-08 8:29 
QuestionDoes Unified communication client api works with any thing other than Office Commnication Server.... Pin
Atif Ali Bhatti15-Jul-08 0:30
Atif Ali Bhatti15-Jul-08 0:30 
AnswerRe: Does Unified communication client api works with any thing other than Office Commnication Server.... Pin
Atif Ali Bhatti15-Jul-08 0:46
Atif Ali Bhatti15-Jul-08 0:46 
QuestionDateTime format Error WMI Pin
Mogaambo15-Jul-08 0:12
Mogaambo15-Jul-08 0:12 
AnswerRe: DateTime format Error WMI Pin
leppie15-Jul-08 0:42
leppie15-Jul-08 0:42 
Questionusing IsNumeric Function in c# Pin
sumit703414-Jul-08 23:53
sumit703414-Jul-08 23:53 
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 

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.