CByte Function

Syntax:

CByte(Num|$)

Group:

Conversion

Description: Converts to a byte value.

Parameters:

Parameter

Description

Num|$

Convert a number or string value to a byte value.

Example:

Sub Main
  Debug.Print CByte(1.6) ' 2
End
Sub