UByte
 
标准数据类型:8位无符号

语法

Dim variable As UByte

说明

8位无符号整数数据类型。可以保存0到255范围内的值。

例子

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

例子

  Dim x As UByte = 0
  Dim y As UByte = &HFF
  Print "UByte范围="; x; "to"; y

输出:
UByte Range = 0 to 255


方言差异

  • -lang qb 方言中不可用,除非使用别名__Ubyte引用。

与QB差别

  • 新的FreeBASIC

参考