Converts an expression to a Boolean value. The expression argument is any valid expression. If expression is zero, Flase is returned; otherwise, True is returned. If expression can't be interpreted as a numeric value, a run-time error occurs.
CBool (Expression)
Returns an expression that has been converted to a Boolean value.
CBool (1 ) |
Returns the boolean value True. |
CBool (0) |
Returns the boolean value False. |
CBool (1 = 2) |
Returns the boolean value False. |
CBool (1 = 1) |
Returns the boolean value True. |
Functions are specifically for use in the Macro Editor. Refer to Microsoft's official VB and JScript documentation for scripting equivalents.
CCur function | CDate function| CDbl function | CDec function | CInt function | CStr function | CUInt function | Functions
© 2004-2021 looksoftware. All rights reserved.