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

Can Be Boolean Function
Comparisons Class

Public Function CanBeBoolean( _
    ByVal vValue As Variant _
    ) As Boolean

Determine if the argument can be converted to a Boolean value.

Examples:
    CanBeBoolean(34) = True
    CanBeBoolean(#12:34:56#) = True
    CanBeBoolean("1") = True
    CanBeBoolean("1 word.") = False
    CanBeBoolean("A word.") = False
    CanBeBoolean(Nothing) = False
    CanBeBoolean(Null) = False
See also:
    CBoolIgnErr Function
    CanBeByte Function
    CanBeInteger Function
    CanBeLong Function
vValue: The argument which is checked to see if it can be converted to a Boolean value. Function returns True if vValue contains a numeric value, a date, or a numeric string value. Function returns False if vValue is Null, an error, or an object pointer.

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