Byte Data Type

Purpose

A 8 bit unsigned integral value.

Syntax

Dim name As Byte

Dim name|

Description

Type declaration character is |.

Range: 0 - 255

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 Byte = 2

Local Byte d1

Global d2|

Remarks

The unsigned integral types are Byte (8-bit) and Card (16-bit).

There is an additional unsigned byte descriptor UByte which can be used only in User-defined Types; see the example in SizeOf.

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: 04/07/2022 by James Gaite}