[Gambas-user] inquiry about grouping
Allen Murphy
msumurph at ...626...
Thu May 11 14:03:01 CEST 2006
I have used an Object[] array to accomplish something similar to what
you are looking for:
DIM arTextboxes AS Object[]
DIM tempTB as TextBox
DIM i AS Integer
FOR i = 0 TO 99
tempTB = NEW TextBox AS "txtGroup"
tempTB.Text = "Textbox number " & Str(i)
tempTB.ForeColor = Color.Green
arTextBoxes.Add(tempTB)
NEXT
FOR i = 0 TO 99
Print arTextBoxes[i].Text
NEXT
I use the array to deal with properties of the text boxes and the name
"txtGroup" to deal with events (LAST returns the object that raised the
event).
Allen
On 5/11/06, Erwin Pogz <erwinpogz at ...43...> wrote:
>
> Hello guys, If im having a group ug TextBox named "txtGroup" each text box named: txtBox1 txtBox2 txtBox3 ... upto txtBox100 how can i loop on each control to set the forecolor property? Or is there any quick way to do it? Best Regards, Erwin
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20060511/1d4b8183/attachment.html>
More information about the User
mailing list