01-09-16, 08:27 PM
حل هذه المشكل بيسط جداً
استخدم جملة Try,catch
try
{
//Dim obj As New DataFactor("Data")
//Dim C As Control
//For Each C In Me.Controls
// If TypeOf C Is TextBox Then
// C.Text = ""
// End If
//Next
//TextBox2.Text = obj.SelectMaxValue("report", "Re_No")
}
catch
{
TextBox2.Text = "1";
}
استخدم جملة Try,catch
try
{
//Dim obj As New DataFactor("Data")
//Dim C As Control
//For Each C In Me.Controls
// If TypeOf C Is TextBox Then
// C.Text = ""
// End If
//Next
//TextBox2.Text = obj.SelectMaxValue("report", "Re_No")
}
catch
{
TextBox2.Text = "1";
}

