Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.13 KB

integer-data-type.md

File metadata and controls

26 lines (17 loc) · 1.13 KB
title keywords f1_keywords ms.assetid ms.date ms.localizationpriority
Integer data type
vblr6.chm1008948
vblr6.chm1008948
5ecb70cf-d8fb-770f-a175-30db4aa3fb9f
11/19/2018
medium

Integer data type

Integer variables are stored as 16-bit (2-byte) numbers ranging in value from -32,768 to 32,767.

The type-declaration character for Integer is the percent (%) sign.

You can also use Integer variables to represent enumerated values. An enumerated value can contain a finite set of unique whole numbers, each of which has special meaning in the context in which it is used. Enumerated values provide a convenient way to select among a known number of choices, for example, black = 0, white = 1, and so on.

It's a good programming practice to define constants by using the Const statement for each enumerated value.

See also

[!includeSupport and feedback]