Converts the value, specified as an argument, to a value of boolean type.
Copy Code |
---|
bool CBool ( |
true, if the specified value can be evaluated as a boolean and evaluates to true; otherwise, false.
If value is a boolean, value is returned. If value is a number, true is returned if the number is non-zero, otherwise - false. If value is a string, true is returned if the string is "true" and false if the string is "false", no case-sensitive.
Conversion Functions
CDate Function
CDbl Function
CInt Function
CLong Function
CSng Function
CStr Function