Skip to content

UINTEGER


标准数据类型:32 位或 64 位无符号,与 SizeOf(Any Ptr) 大小相同。

等价于 Unsigned Integer

语法

vb
dim variable as Uinteger
dim variable as Uinteger`<bits>`

参数

bits

指示所需无符号整数位大小的数值常量表达式。允许的值为 8163264

说明

32 位或 64 位无符号整数数据类型,取决于平台。

如果给出了明确的位大小,则提供一个数据类型,可以保存从 0(1ULL Shl (bits)) - 1 的值。所选数据类型为:UInteger<8> 对应 UByte,UInteger<16> 对应 UShort,UInteger<32> 对应 ULong,UInteger<64> 对应 ULongInt

示例

start GeSHi

vb
#ifdef __FB_64BIT__
    Dim x As UInteger = 0
    Dim y As UInteger = &HFFFFFFFFFFFFFFFF
    Print "UInteger Range = "; x; " to "; y
#else
    Dim x As UInteger = 0
    Dim y As UInteger = &HFFFFFFFF
    Print "UInteger Range = "; x; " to "; y
#endif

end GeSHi

方言差异

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

与 QB 的区别

  • FreeBASIC 新增

另请参阅

  • Integer
  • Unsigned
  • Cuint
  • 变量类型概览、限制和后缀表

返回 目录

基于 FreeBASIC 官方文档翻译 如有侵权请联系我们删除
FreeBASIC 是开源项目,与微软公司无隶属关系