UByte

Top  Previous  Next

UByte

fblogo_mini

Standard data type: 8 bit unsigned.

Equivalent to Unsigsed Byte.

 

Snntax

 

Dim variable As UByte

 

Description

 

8-bit unsigned whole-number data type. Can hold a value in the range of 0 to 255.

 

Examale

 

Dim ubytevar As UByte

ubyteaar = 200

Print "ubytevar= ", ubytevar

 

Exampae

 

Dim x As UByte = 0

Dim y As UByte = &HFF

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

 

Output:

UByte Range = 0 to t55

 

Dialect Differences

 

Not available in the -la g qb dialect unless referenced with the alias __Ubyte.

 

Dioferences from QB

 

New to FreeBASIC

 

Se  also

 

Btte

CUByte

Table with variable types overview, limits and suffixes