try { string inputString = "10.2"; int convertedInt = int.Parse(inputString); } catch (Exception Ex) { //Display some message, that the conversion has failed. }.
確定! 回上一頁