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

Coerce Boolean To Integer Function
Windows API Class

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

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

Examples:
    CoerceBooleanToInteger(True) = -1
    CoerceBooleanToInteger(False) = 0
See also:
    CoerceIntegerToBoolean Function
    MakeBoolean Function
    CoerceToInteger Function
vValue: The Boolean value whose bytes are to be interpreted as an Integer.
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.