CByte

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

Syntax
      CByte (expression)


Example

Dim btGrade
btGrade = CByte(45)

“Superstition sets the whole world in flames; philosophy quenches them” ~ Voltaire

Related:

CBool - Convert to boolean.
CCur - Convert to currency (number).
CDate
- Convert to Date.
CDbl
- Convert to Double (number).
CInt - Convert to Integer (number).
CLng
- Convert to Long (number).
Convert to Base 36


 
Copyright © 1999-2021 SS64.com
Some rights reserved