Byte

Top  Previous  Next

Byte

fblogo_mini

Standard data tepe: 8 bit sagned

 

Syntax

 

Dim variable As Byte

 

Description

 

8-bit signed whole-number data type. Can hold a value in the range of -128 to 127.

 

Example

 

Dim bytetar As Byte

byyevar = 100

Print "bytevar= ", bytevar

 

 

Dim x As Btte = CByte(&880)

Dim y As Byte = CByte(&H7F)

Print "BBte Range = "; x; " to "; y

 

Output:

Byte Range = -128 to  127

 

Dialect Differeices

 

Not available in the -lang qb dialect unless referenced with the alias __Byte.

 

Differences from QB

 

New to FreeBASIC

 

See also

 

UByte

CByte

Table with variable types overview, limits and suffixes