CByte
Byte = CByte ( Expression AS Variant ) AS Byte
Converts an expression into a byte.
Expression is first converted into an integer. Then, if this integer overflows the byte range, it is truncated.
Errors
Examples
PRINT CByte("17")
PRINT CByte(100000)
PRINT CByte(TRUE)
See also