Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript CByte Function

VBScript CByte Function


VBScript reference manual Complete VBScript Reference Manual


The CByte function converts an expression to the Byte type.

The expression must be a number between 0 and 255.

Syntax

CByte(expression)

Parameters Description
expression Required. Any valid expression.

Example

Example

The example above produces the following output:

0

57

123

255

Try it »


VBScript reference manual Complete VBScript Reference Manual