[Gambas-user] Fastest way to select/unselect all

Jussi Lahtinen jussi.lahtinen at ...626...
Sat Nov 17 14:14:06 CET 2012


Dim oo As Object

For Each oo In scV.Children
  If oo Is CheckBox Then
    oo.Value = iDesiredValue
  Endif
Next


Do you need to use Tag like that?
Maybe you could use it to identify that certain checkbox group?
Like this:

For Each oo In scV.Children
  If oo Is CheckBox Then
    If oo.Tag = "CreatedCheckBoxes" Then
    oo.Value = iDesiredValue
    Endif
  Endif
Next


I don't know how IDE implements groups, but maybe it is something you could
look if this wasn't what you wanted.


Jussi






On Sat, Nov 17, 2012 at 1:32 PM, M. Cs. <mohareve at ...626...> wrote:

> Private Sub AddItem(Ite As String)
> Dim chB As CheckBox
> chB = New CheckBox(scV) As "Nyomi"
> chB.Text = Ite
> chB.Tag = Ite
> End
>
>
> I have an array of checkboxes created with this procedure. I would like to
> select / unselect all of them at once. How can I reach them?
>
> Csaba
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> 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