在VB中输入下列代码,编译不能通过
Dim nUINT32 As UInt32
Dim nINT32 As Int32
Dim nUSHORT16 As UShort
Dim nSHORT16 As Short
nUINT32 = &H80000000
nINT32 = &H80000000
nUSHORT16 = &H8000
nSHORT16 = &H8000
解决方法就是在赋值处加上后缀,如下所示
nUINT32 = &H80000000UI
nINT32 = &H80000000I
nUSHORT16 = &H8000US
nSHORT16 = &H8000S