black zero
Well-known member
- Joined
- Jan 15, 2009
- Messages
- 53
- Programming Experience
- Beginner
Here's my code:
a doesn't return CmbLabour1.Text length properly. Help....
VB.NET:
Private Sub CmbLabour1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles CmbLabour1.KeyPress
If Char.IsDigit(e.KeyChar) = False And Char.IsControl(e.KeyChar) = False Then
e.Handled = True
End If
Dim a As Integer = checkStringlength(CmbLabour1.Text)
End Sub
VB.NET:
Private Function checkStringlength(ByVal link As String) As Integer
Dim TestString As String = link
Dim TestLen As Integer = Len(TestString)
Return TestLen
End Function
a doesn't return CmbLabour1.Text length properly. Help....