CByte()

Top  Previous  Next

CByte() - Convert to Byte Value

Description

Converts an expression to a Byte type (i.e. an integer value in the range 0 to 255).

Byte = CByte(Expression)

Returns Byte

Example

Dim strTest, byteTest

 

strTest = "13" 'Set as string value

 

byteTest = CByte(strTest) 'Result is a byte