PDA

Click to See Complete Forum and Search --> : Cannot convert type 'string' to 'double'


RSAAVEDRA
Jan 2nd, 2006, 01:50 PM
hello friends leave east error to me, know as I can solve it?

Cannot convert type 'string' to 'double'

Thanks

Ronald Saavedra

crptcblade
Jan 2nd, 2006, 03:24 PM
You have to parse the string into a double using the Double.Parse(), or Double.TryParse() methods.

Kasracer
Jan 2nd, 2006, 05:46 PM
Also the Convert.ToDouble(MyString) should do the trick.

jmcilhinney
Jan 2nd, 2006, 06:41 PM
From the help topic for Convert.ToDouble(String):Remarks
The return value is the result of invoking the Double.Parse method on value.