CByte

Function that converts an expression into a byte number (0 - 255)

Syntax
      CByte (expression)


Example

Dim btGrade
btGrade = CByte(45)

“The aim of science is not to open the door to infinite wisdom but to set a limit to infinite error” ~ Bertolt Brecht ‘Life of Galileo’

Related:

CBool - Convert to boolean
CCur - Convert to currency (number)
CDate
- Convert to Date
CDbl
- Convert to Double (number)
CDec
- Convert to Decimal (number)
CInt - Convert to Integer (number)
CLng
- Convert to Long (number)
Convert to Base 36
Nz - Detect a NULL value.


© Copyright SS64.com 1999-2013
Some rights reserved