CBool

This function converts an expression to a Variant of subtype Boolean.

Syntax

CBool(expression)

Parameters

expression
Any valid expression.

Return Values

If expression is 0, False is returned; otherwise, True is returned.

Remarks

If expression cannot be interpreted as a numeric value, a type mismatch error occurs.