Public Function makeTransparentTextbox(aTxt As TextBox) 
这个方法 的参数怎么传递过来
makeTransparentTextbox Text8  这个可以makeTransparentTextbox Text2(0) 这个传递过去是空
我想知道控件数组 怎么传递 
text2(0) text2(1) text2(2) text2(3) text2(4) text2(5) 

解决方案 »

  1.   


    makeTransparentTextbox (Text2(0) )
      

  2.   

    Public Function makeTransparentTextbox(aTxt As TextBox
    红线定义的不是数组,你传数组肯定传不过去
      

  3.   

    看来好讨要点代码 makeTransparentTextbox
      

  4.   

    为啥我编译通过了...
    Option ExplicitPublic Function makeTransparentTextbox(aTxt As TextBox)
        Debug.Print aTxt.Text
    End FunctionPrivate Sub Command1_Click()
        makeTransparentTextbox Text1(0)
    End Sub
      

  5.   

     Debug.Print aTxt.Text
    能输出值来??
      

  6.   

    Option ExplicitPrivate Sub Command1_Click()
    t Text1(0)
    End Sub
    Sub t(a As TextBox)
    a.Text = "34"
    End Sub一点问题都没有
      

  7.   


    老兄啊老兄,atxt=""是text属性为空字串,并不是atxt为nothing