Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






CByte function

Returns an expression converted to the Byte data type.

Note This function is new with Domino Release 6.

Syntax

CByte ( expr )

Elements

expr

Any numeric expression, or a string expression that LotusScript can convert to a number.

Return value

CByte returns an expression that has been converted to 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 data type, the function raises an error.

See examples

Examples: CByte function
Related topics
LotusScript Language Reference: A through D
Data type conversion
Byte data type
CBool function
CCur function
CDat function
CDbl function
CInt function
CLng function
CSng function
CStr function
CVar function
Round function




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009