vb 怎么用窗体的controls属性 引用控件组的成员

vb 如何用窗体的controls属性 引用控件组的成员
如遍列 text(0).....text(9)  

我要实现一个通用的自动调用控件组各个控件的相关的功能

不要回复用 for each 和 for 这个我知道

代码示列如下

for i=0 to 9
  s="text(" & i & ")"
  controls(s).text=i
next i
可总是说找不到text控件




------解决方案--------------------
VB code
Dim i As Long
For i = 0 To Controls.Count - 1
    If InStr(1, Me.Controls(i).Name, "Text1") > 0 Then
       Me.Controls(i).Text = i
    End If
Next

------解决方案--------------------
for i=0 to 9
controls("text")(i).text=i
next i