Programming Reference Manual
CBool
Syntax
CBool(
Num
|
$
)
Description
Convert to a
boolean
value. Zero converts to
False
, while all other values convert to
True
.
Parameter
Description
Num|$
Convert a number or string value to a boolean value.
See Also
Example
Sub
Main
Debug
.
Print
CBool
(-1)
'True
Debug
.
Print
CBool
(0)
'False
Debug
.
Print
CBool
(1)
'True
End
Sub
Home
IDE Overview
Declarations
Data Types
Assignment
Flow Control
Error Handling
Conversion
Conversion
Array
CBool
CByte
CCur
CDate
CDbl
CDec
CHuge_
CInt
CLng
CSng
CStr
CVar
CVCur
CVDate
CVErr
Hex
Oct
Str
Val
Variable Info
Constant
Math
Financial
Strings
StringClass
Objects
Time/Date
File
User Input
User Dialog
Dialog Functions
Web Form
CCL (web server)
DDE
Settings
Miscellaneous
Operator
Translator