Quote Originally Posted by koolsid View Post
Not Sure but do you have something like this in vb.net?

vb Code:
  1. Dim BogusDec As Decimal
  2. If TextBox.Text.Trim.Length < 8I AndAlso Decimal.TryParse(TextBox.Text.Trim, BogusDec) Then
  3.   'Good to go
  4. 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:
  1. If TextBox.Text.Trim.Length < 8 AndAlso Decimal.TryParse(TextBox.Text.Trim, Nothing) Then
  2.   'Good to go
  3. End If
[/QUOTE]