[Gambas-user] Please help me, I've something trouble about gambas

Jussi Lahtinen jussi.lahtinen at ...626...
Tue Jun 16 18:52:23 CEST 2009


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<sktan007 at ...43...> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list