Article ID: 143426
Article Last Modified on 7/15/2004
Sub AllUcase(txt() As TextBox)
Dim i As Integer
For i = LBound(txt) To UBound(txt)
txt(i) = UCase(txt(i))
Next i
End Sub
Sub Command1_Click()
On Error Resume Next
Dim i As Integer
Dim Again As Integer
ReDim Tabtxt(0) As TextBox
i = 0
Again = True
While Again
Text1(i).Tag = Text1(i).Tag
If Err = 0 Then
Redim Preserve TabTxt(0 To i)
Set TabTxt(i) = Text1(i)
Else
Again = False
End If
i = i + 1
Wend
Call AllUcase(TabTxt())
End Sub
AddControlArrayElement Text1
The code in the procedure would be as follows:
Sub AddControlArrayElement (ControlArray as Object)
NextElement% = ControlArray.Count
Load ControlArray(NextElement%)
ControlArray(NextElement%).Top = ControlArray(NextElement%-1).Top+100
ControlArray(NextElement%).Visible=True
End Sub
Keywords: kbhowto KB143426