Thanks Hack.
But how would I reference the different label names?
westconn1 said you cannot create a control array at runtime.
techgnome, how would I go about doing what you suggest?
dim arrLabel(0 to 10) as label
dim i as integer
for i=0 to 10
Set arrLabel(i) = Me.Controls.Add("VB.Label", "futureLabel" & i)
next
for i=0 to 10
arrLabel(i).caption="Hello" & i
next




Reply With Quote