25 th Oct 2014 01:31:39
Hai Friend , Sign In
Home
World
INDIA
Chennai City
Games
Developers
Members
Birthday
IP 2 Location
Search
Astrology
G. K.
Story
Tamil Nadu Government Holiday List 2013 in English and Tamil   *   Trichy: Wanted - PHP, MySql Programmers. Contact trichy people only 9150 170 357.   *   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

CInt Function - Visual Basic 6.0 (VB 6.0)

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

Return Data type:
Integer
Example:
Statement Result Remark
CInt(1) 1  
CInt(1.5) 2  
CInt(2.5) 2 Nearest Even Number
CInt(0) 0  
CInt(-1) -1  
CInt(123.5678) 124  
CInt(123.4567) 123  
CInt(-32769) Error Overflow. Allowed -32,768 to 32,767
CInt(32768) Error Overflow. Allowed -32,768 to 32,767
CInt("123.4567") 123  
CInt(unknown) 0 uninitialized Variable
CInt(Null) Null  
CInt("abcd") Error Type mismatch
CInt(True) -1 True - Non Zero
CInt(False) 0 False - Zero
Go to top

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





© 2005 - 2007 Chennaiiq.com. All Rights Reserved.

Our Sites: ChennaiIQ.com || Tamil Calendar || Tamil Panchangam || KP Astrology
Our Blogs: Tamil Calendar



687