Skip to content

UBYTE


Standard data type: 8 bit unsigned.

Equivalent to Unsigned Byte.

Syntax

` dim variable as Ubyte

`

Description

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

Examples

start GeSHi

vb
Dim ubytevar As UByte
ubytevar = 200
Print "ubytevar= ", ubytevar

end GeSHi

Examples

start GeSHi

vb
  Dim x As UByte = 0
  Dim y As UByte = &HFF
  Print "UByte Range = "; x; " to "; y

end GeSHi

Output:

UByte Range = 0 to 255

Dialect Differences

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

Differences from QB

  • New to FreeBASIC

See also

  • Byte
  • Cubyte
  • Table with variable types overview, limits and suffixes

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft