I'm working on a existing project where displays in a ListView are getting corrupted from a sort routine. This issue is the logic is treating a dollar amount as a date. It basically comes from a check similar to this:
It is after "23.00" that VB longer considers it a date. What's going wrong?Code:Dim strTestIt As String strTestIt = "200.00" If IsDate(strTestIt) = True Then MsgBox "Date" Else MsgBox "Not date" '<== Tests not a date End If strTestIt = "10.00" If IsDate(dTestIt) = True Then MsgBox "Date" <== Tests as a date Else MsgBox "No date" End If


Reply With Quote
icon on the left of the post.
