28 th Jun 2022 21:22:02
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

CByte Function - Visual Basic 6.0 (VB 6.0)

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

Return Data type:
Byte
Example:
Statement Result Remark
CByte(1) 1  
CByte(1.5) 2  
CByte(2.5) 2 Nearest Even Number
CByte(0) 0  
CByte(-1) Error Overflow. Allowed 0 - 255
CByte(123.5678) 124  
CByte(123.4567) 123  
CByte(256) Error Overflow. Allowed 0 - 255
CByte("123.4567") 123  
CByte(unknown) 0 uninitialized Variable
CByte(Null) Null  
CByte("abcd") Error Type mismatch
CByte(True) 255 True - Non Zero
CByte(False) 0 False - Zero
Go to top

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





© 2021 Chennaiiq.com. All Rights Reserved.

4323