//Declaring of "Total Statements"
double NetSalary, PensionFundPercentage, grossSalary, TaxableAmount, MonthlySalary, Allowance, Paye, Uif, MedicalAid, totalDeduction;
double PensionFund;
double Other = 0;
double.TryParse(txtOtherDeductions.Text, out Other);
//Convert Statements
Allowance = Convert.ToDouble(txtDeductions.Text);
PensionFund = Convert.ToDouble(txtPenFund.Text);
Paye = Convert.ToDouble(txtPayasUEarn.Text);
IM UNABLE TO CALCULTE工資構成危害引述的金額類型「System.FormatException」的未處理的異常出現在mscorlib.dll其他信息:輸入字符串的不正確的格式
錯誤非常明顯,異常行爲您提供所需的所有信息,txtPenFund.Text的值不能被解析爲雙精度值。 – Gusman
txtPenFund.Text conatins的值是什麼?錯誤說它包含除了numaric – Ram
我不明白... –