CInt

The CInt function converts an expression to a variant of subtype Integer.

Note : The value must be a number between -32768 and 32767.

Syntax :

CInt(Expression)

Parameters :

Expression = Any valid expression.

Parameters Description
Expression Required. Any valid expression.

Examples :

Example 1

dCInt = CInt(700)
DEBUG(dCInt)

Result :

dCInt
= 700

Example 2

dCInt = CInt(36.75)
DEBUG(dCInt)

Result :

dCInt
= 37

Example 3

dCInt = CInt(-67)
DEBUG(dCInt)

Result :

dCInt
= -67