CType(IIf(txttotal.Text = "", 0, txttotal.Text), String)
Private Function IsDataValid(ByVal InputData As String) As Boolean 'Return true if the input data is numeric. If Not IsNumeric(InputData) Then ErrorProvider1.SetError(txtpatient_age, "Invalid age") Label1.Visible = True Else Label1.Visible = False ErrorProvider1.Clear() End If End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)