Public Function EqualExactDataType( _
ByVal vOne As Variant _
, ByVal vTwo As Variant _
, Optional ByVal vCompare As Variant _
) As Boolean EqualExactDataType("ALL", "all", vbBinaryCompare) = False
EqualExactDataType("all", "ALL", vbBinaryCompare) = False
EqualExactDataType("ALL", "all", vbTextCompare) = True
EqualExactDataType("3", 3) = False
EqualExactDataType(Null, 3) = FalseSee also: EqualCoerceDataType Function
EqualLikeDataType Function
CompareExactDataType Function
StrComp Function (Visual Basic)If the arguments vOne and vTwo have the same data type, then compare the values. True if vOne = vTwo
False if vOne <> vTwoSummary: Null = Null -> True.
Empty = Empty -> True.
Use String comparisons on strings.
Use Numeric comparison on numbers and/or dates.
The data type of both arguments must be the same for comparison to take place.vOne: First of two values which are to be compared for equality. Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.