Click here to Skip to main content
15,909,591 members
Home / Discussions / C#
   

C#

 
AnswerRe: Infragistics control Pin
Colin Angus Mackay3-Jul-07 22:35
Colin Angus Mackay3-Jul-07 22:35 
AnswerRe: Infragistics control Pin
Stu Richardson3-Jul-07 22:54
Stu Richardson3-Jul-07 22:54 
Question0=48?? Pin
Manfr3d3-Jul-07 21:55
Manfr3d3-Jul-07 21:55 
AnswerRe: 0=48?? Pin
Giorgi Dalakishvili3-Jul-07 21:59
mentorGiorgi Dalakishvili3-Jul-07 21:59 
GeneralRe: 0=48?? Pin
Manfr3d4-Jul-07 1:03
Manfr3d4-Jul-07 1:03 
AnswerRe: 0=48?? Pin
mav.northwind3-Jul-07 22:08
mav.northwind3-Jul-07 22:08 
GeneralRe: 0=48?? Pin
Manfr3d4-Jul-07 1:11
Manfr3d4-Jul-07 1:11 
GeneralRe: 0=48?? [modified] Pin
Martin#4-Jul-07 1:30
Martin#4-Jul-07 1:30 
Hello,

For the first error the compiler says it all.
you have to use float instead of double or use double.TryParse.

Second error is, that the second parameter is an out parameter and has to be marked like that.
string s = "";
float x = 0;
s = Console.ReadLine();
if(float.TryParse(s, out x)) //Returns true if the conversion is ok (does never throw an exception)
    Console.Write(x.ToString());


Hope it helps!

All the best,
Noch einen schönen Tag,

Martin


-- modified at 11:48 Wednesday 4th July, 2007
GeneralRe: 0=48?? Pin
Vikram A Punathambekar4-Jul-07 1:54
Vikram A Punathambekar4-Jul-07 1:54 
Questionusing serial port with vista??? Pin
Mir_As3-Jul-07 21:38
Mir_As3-Jul-07 21:38 
Questionpassing data Pin
Bong M.3-Jul-07 21:27
Bong M.3-Jul-07 21:27 
AnswerRe: passing data Pin
JacquesDP3-Jul-07 22:18
JacquesDP3-Jul-07 22:18 
AnswerRe: passing data Pin
wasife4-Jul-07 0:04
wasife4-Jul-07 0:04 
AnswerRe: passing data Pin
JeffPClark4-Jul-07 8:33
JeffPClark4-Jul-07 8:33 
QuestionGridview error Pin
kankeyan3-Jul-07 21:18
kankeyan3-Jul-07 21:18 
AnswerRe: Gridview error Pin
Vikram A Punathambekar3-Jul-07 22:09
Vikram A Punathambekar3-Jul-07 22:09 
GeneralHere is the code Pin
kankeyan3-Jul-07 22:19
kankeyan3-Jul-07 22:19 
GeneralRe: Here is the code Pin
Vikram A Punathambekar3-Jul-07 23:23
Vikram A Punathambekar3-Jul-07 23:23 
AnswerRe: Gridview error Pin
_AK_3-Jul-07 23:09
_AK_3-Jul-07 23:09 
QuestionDelete a string from a string array. Pin
Praveen0293-Jul-07 21:14
Praveen0293-Jul-07 21:14 
AnswerRe: Delete a string from a string array. Pin
Giorgi Dalakishvili3-Jul-07 21:26
mentorGiorgi Dalakishvili3-Jul-07 21:26 
AnswerRe: Delete a string from a string array. Pin
V.3-Jul-07 21:27
professionalV.3-Jul-07 21:27 
AnswerRe: Delete a string from a string array. Pin
Martin#3-Jul-07 21:36
Martin#3-Jul-07 21:36 
GeneralRe: Delete a string from a string array. Pin
Giorgi Dalakishvili3-Jul-07 21:51
mentorGiorgi Dalakishvili3-Jul-07 21:51 
GeneralRe: Delete a string from a string array. Pin
Martin#3-Jul-07 22:01
Martin#3-Jul-07 22:01 

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.