Int16, Integer16, Word, Short Data Type

Purpose

A 16 bit signed integral value.

Syntax

Dim name As Int16 | Word | Short | Integer16
Dim name&

Description

Type declaration character is &.

Int16, Integer16, Word, and Short are keywords for a 16-bits signed integer.

Range: -32768 to 32767

Arithmetic operations are faster with integral types than with other data types. They are fastest with the 32-bit Integer types.

Example

Dim d As Word = 2

Local Short d1

Local d2&

See Also

Boolean, Byte, Card, Short, Word, Int16, Long, Int, Integer, Int32, Int64, Large, Single, Double, Currency, Date, Handle, String, Variant, Object

{Created by Sjouke Hamstra; Last updated: 10/10/2014 by James Gaite}