I have a method which is connecting to a database via Odbc. The stored procedure which I\'m
calling has a return value which from the database side is a \'Char\'. Right now I\'
Private Function ConvertToBoolean(p1 As Object) As Boolean
If p1 Is Nothing Then Return False
If IsDBNull(p1) Then Return False
If p1.ToString = "1" Then Return True
If p1.ToString.ToLower = "true" Then Return True
Return False
End Function