<-- Previous || Up || Next -->

Coerce Integer To Boolean Function
Windows API Class

Public Function CoerceIntegerToBoolean( _
    ByVal vValue As Integer _
    ) As Boolean

Coerce an Integer value into a Boolean value.
Return the Boolean value whose bytes have the same in-memory representation as the Integer value vValue.

Examples:
    CoerceIntegerToBoolean(-1) = True
    CoerceIntegerToBoolean(0) = False
    CoerceIntegerToBoolean(1) = True
    CoerceIntegerToBoolean(56) = True
See also:
    CoerceBooleanToInteger Function
    MakeInteger Function
    CoerceToBoolean Function
Note: Since Boolean value are not capable of representing the same range of values as Integers, CoerceBooleanToInteger(CoerceIntegerToBoolean(X)) will likely not equal X.
Note: We are not sure if this function has any use, but we included it to be consistent and complete.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.