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, 2009 at 15:25, Swee Kwang Tan<sktan...@yahoo.com> wrote:
> 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
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to