VB数组的赋值只能一个一个的赋值吗?
outData(0)=&H68outData(1)=&H4outData(2)=CByte(Val(Text1))outData(3)=&HCoutData(4)=IIf...
outData(0) = &H68
outData(1) = &H4
outData(2) = CByte(Val(Text1))
outData(3) = &HC
outData(4) = IIf(mode, &H1, &H0) ' &HC
outData(5) = SumCheck(outData, 1, 4)
数组的赋值只能一个一个的赋吗? 不能想C语言一样直接:char outData[6]={0x68,0x05,0x00,0x04,0x00,0x08};吗? 展开
outData(1) = &H4
outData(2) = CByte(Val(Text1))
outData(3) = &HC
outData(4) = IIf(mode, &H1, &H0) ' &HC
outData(5) = SumCheck(outData, 1, 4)
数组的赋值只能一个一个的赋吗? 不能想C语言一样直接:char outData[6]={0x68,0x05,0x00,0x04,0x00,0x08};吗? 展开
2个回答
2012-03-20
展开全部
不是啊,可以直接全部赋值进去的,到时候redim就行了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询