请下面的代码什么意思Dim A As Byte() 这个句话什么意思

来源:百度知道 编辑:UC知道 时间:2024/06/30 04:35:12
dim a As Dyte() ,As是什么意思啊。dim是声明变量a后边是什么意思啊

应该是Dim A As Byte
Byte是数据类型
dim <变量名> as <数据类型> 是个固定的格式,as必须加

小弟愚见
这个语句有两处错误:
括号应放到 a 后面,Dyte 应是 Byte,即:
Dim a() As Byte

意思是声明一个二进制数据 Byte 型动态数组,
As 在这里是“是”的意思,即指明变量类型。

dim a As byte
定义 a 为 byte 类型变量
就好理解了。
byte为8位整型变量。取值范围为0~127

另外,你说的到底是
Dim A As Byte
dim a As Dyte ?????
Dim A As Byte() 这句语法有误

dyte()应为一自定义类型
如type dyte
a as integer
b(2) as long
c as ......
d as......
end dyte
dim a As byte
定义 a 为 byte 类型变量
就好理解了。
byte为8位整型变量。取值范围为0~127

另外,你说的到底是
Dim A As Byte
dim a As Dyte ?????
Dim A As Byte() 这句语法有误

定义变量A 为 Dyte()类型,
Dyte应该是个方法名字.