CByte

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

Syntax
      CByte (expression)
 

Examples

Dim btGrade
btGrade = CByte(45)

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

Related VBScript commands

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-2024 SS64.com
Some rights reserved