close

字串轉換 double 的時候,用以下方式轉

,直接用Convert.toDouble 去塞值會爆掉,會一直出現字串格式不符合,真是見鬼了,

還好有以下方法可用,可與大家共勉之....微軟我真是搞不懂你啊

M_Point = Point.Text;

double M_Pointspread = 0;

if (Double.TryParse(M_Point, out M_Pointspread))
{
G_Pointspread = -(M_Pointspread);
}
else
{

}

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 法蘭克不要怕 的頭像
    法蘭克不要怕

    法蘭克不要怕

    法蘭克不要怕 發表在 痞客邦 留言(0) 人氣()