UBYTE
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgUbyte
- Last revised: 2021-12-13
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= ", ubytevarend GeSHi
Examples
start GeSHi
vb
Dim x As UByte = 0
Dim y As UByte = &HFF
Print "UByte Range = "; x; " to "; yend GeSHi
Output:
UByte Range = 0 to 255Dialect Differences
- Not available in the -lang qb dialect unless referenced with the alias
__Ubyte.
Differences from QB
- New to FreeBASIC
See also
ByteCubyteTable with variable types overview, limits and suffixes
Back to DocToc