CShort Function

Syntax:

CShort(Num|$)

Group:

Conversion

Description: 

Converts to a 16 bit signed integer Short value. If expr is too big (or too small) to fit then an overflow error occurs.

Parameters:

Parameter

Description

expr

Converts a number or string value to a 16 bit signed integer.

Example:

Sub Main
  Debug.Print CShort(1.6) ' 2
End
Sub