28 th Jun 2022 22:33:08
Hai Friend , Sign In
Home
World
INDIA
Chennai City
Games
Developers
Members
Birthday
Search
Astrology
G. K.
Story
Tamil Nadu Government Holiday List 2018 in English and Tamil   *   Trichy: Wanted - PHP, MySql Programmers. Contact trichy people only 84894 28 444.   *   Indian Railways New Train Number List [Search / Enquiry / Locator / Finder]   *   பன்றிக் காய்ச்சல் பற்றி அறிந்து கொள்ளுங்கள் (Swine Flu H1N1)
See Also
Type Conversion Functions Type Conv. Functions
Visual Basic Functions Visual Basic Functions
Visual Basic Home Visual Basic Home
 
Description  Syntax  Return Datatype  Example  Migration

CBool Function - Visual Basic 6.0 (VB 6.0)

Returns an expression that has been converted to a Variant of subtype Boolean.
Syntax:
CBool(expression)
Parameter Description
expression Required. The expression argument is any valid expression.

Return Data type:
Boolean
Example:
Statement Result Remark
CBool(1) True  
CBool(33.57) True  
CBool(-1) True  
CBool(0) False  
CBool(5 = 10) False  
CBool(5 > 10) False  
CBool(5 < 10) True  
CBool("a" = "a") True  
CBool("a" = "A") False  
CBool(unknown) False uninitialized Variable
CBool(Null) Null  
CBool("abcd") Error Type mismatch
CBool(True) True True - Non Zero
CBool(False) False False - Zero
Go to top

Migration from Visual Basic 6.0 (VB 6.0) to
  CBool Function in VB Script (VBS)
  CBool Function in JScript (JS)
  CBool Function in ASP (Active Server Page)
  CBool Function in PHP Script
  CBool Function in MS-Access
  CBool Function in MS SQL Server
  CBool Function in Oracle
  CBool Function in C Language
  CBool Function in C++ Language
  CBool Function in Foxpro
  CBool Function in Fortran
  CBool Function in MS Excel Sheet
Go to top
 





© 2021 Chennaiiq.com. All Rights Reserved.

5555