Compares two strings and returns true if they are the same. For the comparison, nulls and empty strings are treated as equal and leading and trailing spaces are ignored.
Syntax
'Declaration
Public Shared Function CompareIgnoreNulls( _
ByVal As String, _
ByVal As String _
) As Boolean
'Usage
Dim str1 As String
Dim str2 As String
Dim value As Boolean
value = Utils.CompareIgnoreNulls(str1, str2)
Parameters
- str1
- str2
See Also