Public Function ReplaceVarTypeWithValue( _ ByVal vOriginal As Variant _ , ByVal vVarType As Variant _ , ByVal vReplace As Variant _ ) As Variant
ReplaceVarTypeWithValue(1, vbString, Null) = 1 ReplaceVarTypeWithValue(1, vbInteger, "Int") = "Int" ReplaceVarTypeWithValue("Int", vbString, 0) = 0 ReplaceVarTypeWithValue(Null, vbNull, "") = ""See also:
ReplaceValue Function ReplaceValueOfType Function vbArray Property, et. al. VarType Function (Visual Basic)vOriginal: The value whose data type is checked to see if it matches vVarType. Function returns vReplace if the data type of vOriginal matches vVarType. Function returns vOriginal otherwise. vOriginal must be an Empty, Null, numeric, String, or Array value.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.