I'm not sure I understand correctly, but;
Dim oo As Object
For Each oo In FormName.Controls ' or ContainerName.Children
If oo Is Label Then
oo.Caption = "Some string"
Endif
Next
You can use oo.Tag as identifier.
Or you can put you labels to collection.
Hope this helps.
Jussi
On Tue, Jun 16,
My Dear,
There is a form include 10 label, if I wish to use a for
loop assign 10 string to it, 10 difference string to the label, how do I write
the program ?
Thank you.
Albert Lee
___
辣茩妏蚚閉湮⺍講捇誥蚘眊
http://cn.mail.yahoo.com