Public Function CoerceIntegerToBoolean( _ ByVal vValue As Integer _ ) As Boolean
CoerceIntegerToBoolean(-1) = True CoerceIntegerToBoolean(0) = False CoerceIntegerToBoolean(1) = True CoerceIntegerToBoolean(56) = TrueSee also:
CoerceBooleanToInteger Function MakeInteger Function CoerceToBoolean FunctionNote: Since Boolean value are not capable of representing the same range of values as Integers, CoerceBooleanToInteger(CoerceIntegerToBoolean(X)) will likely not equal X.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.