VB常数表达式

PrivateSubCm3_Click()DimqAsIntegerq=T1.TextDimarray1(1Toq)AsIntegerDimarray2(1Toq)AsI... Private Sub Cm3_Click()
Dim q As Integer
q = T1.Text
Dim array1(1 To q) As Integer
Dim array2(1 To q) As Integer
Dim array3(1 To q) As Integer
Dim array4(1 To q) As Integer
Dim array5(1 To q) As Integer
For i = 1 To q
array1(i) = 0
array2(i) = 0
array3(i) = 0
array4(i) = 0
array5(i) = 0
Next
End Sub

Private Sub Cm3_Click()这句报的错,他要常数表达式,那位高手帮忙改下,其他有问题的地方也帮忙改下,谢谢!
ReDim a1(1 To q) As Integer
下标越界?
展开
 我来答
dcount10
2009-05-27 · TA获得超过301个赞
知道小有建树答主
回答量:294
采纳率:0%
帮助的人:405万
展开全部
dim要求常数,如需变长度数组需要使用Redim
Dim q As Integer
q = T1.Text
Dim array1() As Integer
Dim array2() As Integer
Dim array3() As Integer
Dim array4() As Integer
Dim array5() As Integer
ReDim array1(1 To q) As Integer
ReDim array2(1 To q) As Integer
ReDim array3(1 To q) As Integer
ReDim array4(1 To q) As Integer
ReDim array5(1 To q) As Integer
For i = 1 To q
array1(i) = 0
array2(i) = 0
array3(i) = 0
array4(i) = 0
array5(i) = 0
Next
Sievers分析仪
2025-01-06 广告
是的。传统上,对于符合要求的内毒素检测,最终用户必须从标准内毒素库存瓶中构建至少一式两份三点标准曲线;必须有重复的阴性控制;每个样品和PPC必须一式两份。有了Sievers Eclipse内毒素检测仪,这些步骤可以通过使用预嵌入的内毒素标准... 点击进入详情页
本回答由Sievers分析仪提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式