LOTUSSCRIPT LANGUAGE

CByte function
Example

Returns an expression converted to the Byte data type.

Syntax

CByte ( expr )

Elements

expr


Return value

CByte returns an expression that has been converted to a Variant of subtype Byte.

CByte(EMPTY) returns 0.

If expr is a string expression, CByte returns the numeric representation of the string, rounded to the nearest integer. If LotusScript cannot convert the string to a number, the function raises an error.

If expr lies outside the acceptable range for the Byte subtype, the function raises an error.

Example
See Also