Features
Ask DevGuru
ASP Resources
Find the Bug
Knowledge Base
Links
Tips of the Week
Tutorials
Products
dgCalendar
dgCharge New!
dgChart New!
dgFileUpload
dgReport New!
dgSort
dgTree
Site
Authoring
Coming Soon
DevGuru Resume
Link to Us
Merchandise
Sponsorships
Testimonials
What's New
Technologies
ADO 2.6
ASP
CSS2
HTML
JavaScript
Jet SQL
Transact-SQL Syntax
VBScript
WML
WMLScript
WSH
XML DOM
All Functions
CByte Function
CCur Function
CDate Function
CDbl Function
CInt Function
CLng Function
CSng Function
CStr Function
FUNCTION: CBool( )
Implemented in version 1.0
You can determine the expression subtype by using the function
VarType( )
.
CBool
(Number)
The
CBool
function converts any number to the variant of subtype
Boolean
.
The output for
Boolean
is either true or false. If the conversion is successful, the output will be true. If the conversion fails, the output will be false or an error message.
Code:
<% anynumber=7.77 %>
<% =CBool(anynumber) %>
Output:
True
Code:
<% notnumber=abc %>
<% =CBool(notnumber) %>
Output:
False
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information