Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,147 of 10,840    |
|    edoepke to hennie    |
|    Re: TextBox Error    |
|    14 Jan 05 14:42:33    |
      From: edoepke@comcast.net              This will allow you to useboth positive and negative numbers and decimal       points.              Private Sub Text1_Change()        If Not ValidateNumeric(Text1.Text) Then        Text1.Text = ""        End If       End Sub              Private Function ValidateNumeric(strText As String) _        As Boolean        ValidateNumeric = CBool(strText = "" _        Or strText = "-" _        Or strText = "-." _        Or strText = "." _        Or IsNumeric(strText))       End Function              Hope this helps.                     "hennie" |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca