
Originally Posted by
koolsid
Not Sure but do you have something like this in vb.net?
vb Code:
Dim BogusDec As Decimal
If TextBox.Text.Trim.Length < 8I AndAlso Decimal.TryParse(TextBox.Text.Trim, BogusDec) Then
'Good to go
End If
You don't need to declare that variable if you won't be using it. You can simply pass Nothing for it.
vb.net Code:
If TextBox.Text.Trim.Length < 8 AndAlso Decimal.TryParse(TextBox.Text.Trim, Nothing) Then
'Good to go
End If
[/QUOTE]