Public Sub FixUpVariantCompare( _ ByRef rCompare As Variant _ )
FixUpVariantCompare vCompare FixUpVariantToLongMandSub vCompare, vbBinaryCompareNote: This function will always modify its rCompare argument (unless it generates a runtime error because the argument was a number not within the range allowed for Long values).
Assuming Dim varTemp As Variant varTemp = vbTextCompare for example FixUpVariantCompare varTemp leaves varTemp = vbTextCompareExample:
Assuming Dim varTemp As Variant varTemp = Null for example FixUpVariantCompare varTemp leaves varTemp = vbBinaryComparev1.3 Change: This subroutine no longer uses the value of the Application Class Compare Property. It now sets the argument to vbBinaryCompare when the argument is not a valid Long number.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.