Dim Result As DialogResult Result = MessageBox.Show("请确认包装内是否有塑胶隔环?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) If Result = DialogResult.Yes Then e.DataRow("幢1_其它") = "0.1" e.DataRow("幢2_其它") = "0.1" e.DataRow("幢3_其它") = "0.1" e.DataRow("幢4_其它") = "0.1" Else e.DataRow("幢1_其它") = "0" e.DataRow("幢2_其它") = "0" e.DataRow("幢3_其它") = "0" e.DataRow("幢4_其它") = "0" End If