vb 调试时候弹出编译错误,要求对象:
把以下代码屏蔽就好了'陈磊Dimpm(0To2)AsDoubleDimpm1(0To2)AsDoubleSetpm(0)=0Setpm(1)=0Setpm1(0)=0Se...
把以下代码屏蔽就好了
'陈磊
Dim pm(0 To 2) As Double
Dim pm1(0 To 2) As Double
Set pm(0) = 0
Set pm(1) = 0
Set pm1(0) = 0
Set pm1(1) = 0
哥哥,怎样才能驴唇对上马嘴?光牢骚解决不了问题 展开
'陈磊
Dim pm(0 To 2) As Double
Dim pm1(0 To 2) As Double
Set pm(0) = 0
Set pm(1) = 0
Set pm1(0) = 0
Set pm1(1) = 0
哥哥,怎样才能驴唇对上马嘴?光牢骚解决不了问题 展开
2个回答
2009-03-04
展开全部
set 语句 将对象引用赋给变量或属性
你定义 pm为变量 却用set 当然是牛头不对马嘴。。
Dim pm(0 To 2) As Double
Dim pm1(0 To 2) As Double
pm(0) = 0
pm(1) = 0
pm1(0) = 0
pm1(1) = 0
这样就好
你定义 pm为变量 却用set 当然是牛头不对马嘴。。
Dim pm(0 To 2) As Double
Dim pm1(0 To 2) As Double
pm(0) = 0
pm(1) = 0
pm1(0) = 0
pm1(1) = 0
这样就好
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询