Use either System.Convert.ToDecimal or decimal.Parse method. Make sure that
the decimal separator for the current culture is the same as the one you're
trying to parse - otherwise you might get a FormatException (parse method)
or an unpredicted result in some cases.
Here is the example with the Parse method :
string s = "123.45";
NumberFormatInfo nfi = new NumberFormatInfo();
nfi.CurrencyDecimalSeparator = ".";
decimal dec = decimal.Parse(s, nfi);
Hope that helps,
Branimir
--
Branimir Giurov
MCSD.NET, MCDBA
"Will" <an*******@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.com...
Thanks in advance.