28 th Jun 2022 21:23:14
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

CLng Function - Visual Basic 6.0 (VB 6.0)

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

Return Data type:
Long
Example:
Statement Result Remark
CLng(1) 1  
CLng(1.5) 2  
CLng(2.5) 2 Nearest Even Number
CLng(0) 0  
CLng(-1) -1  
CLng(123.5678) 124  
CLng(123.4567) 123  
CLng(2147483648) Error Overflow (-2,147,483,648 to 2,147,483,647)
CLng(-2147483649) Error Overflow (-2,147,483,648 to 2,147,483,647)
CLng("123.4567") 123  
CLng(unknown) 0 uninitialized Variable
CLng(Null) Null  
CLng("abcd") Error Type mismatch
CLng(True) -1 True - Non Zero
CLng(False) 0 False - Zero
Go to top

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





© 2021 Chennaiiq.com. All Rights Reserved.

4346