Re: [Gambas-user] Re ferencing existing multiple controls in loops

2009-03-30 Thread Richard Muir-Gladman
On Mon, 2009-03-30 at 13:55 -0700, jbskaggs wrote: > Okay I have a form with say 50 picturebox controls: > > How does one check each controls in a loop? > > So if I wanted to have a big picture box reference each of the previous > pictureboxes > > > In GML I could use this: > > a="PictureBox"

Re: [Gambas-user] Re ferencing existing multiple controls in loops

2009-03-30 Thread M0E.lnx
What you want to do is a loop. For example. say this is a class file. And all your pictureboxes are already in objPboxes private objPboxes as object[] PUBLIC SUB Set_Pictures() DIM pb as picturebox for each pb in objPboxes pb.picture = "/path/to/picture" next END

[Gambas-user] Re ferencing existing multiple controls in loops

2009-03-30 Thread jbskaggs
Okay I have a form with say 50 picturebox controls: How does one check each controls in a loop? So if I wanted to have a big picture box reference each of the previous pictureboxes In GML I could use this: a="PictureBox" for i = 0 to 50 step 1 b=a&i BigPicturebox.Picture=b.picture wait 2 next