The ToByte function is a type conversion function. ToByte converts the expression to a long value, but only to a value of 0-255.
Syntax | ||||
ToByte(Expr) | ||||
Return value | ||||
Type |
Description | |||
Long |
0 – 255 | |||
Parameter | ||||
Use |
Name |
Type |
Passing |
Description |
Required |
Expr |
Variant |
ByVal |
Expression to be converted to a byte value. |