Help Center›FreeBASIC
UBytekeyword
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.
Remarks
Dialect Differences
- Not available in the -lang qb dialect unless referenced with the alias
__Ubyte.
Differences from QB
- New to FreeBASIC
See also
Example
Dim ubytevar As UByte
ubytevar = 200
Print "ubytevar= ", ubytevar
Dim x As UByte = 0
Dim y As UByte = &HFF
Print "UByte Range = "; x; " to "; y
Output:
UByte Range = 0 to 255
Reference
- Documented in KeyPgUbyte.html