for each
-
hey, this looks like a easy one but i'm stumped
For Each dal As ArrayList In My.Settings
dal.RemoveAt(Me.TabControl.SelectedIndex)
Nextbasically what i am trying to do is for every arraylist remove a section of it, a error comes under my.settings saying that it is not a collection, can anyone help, thanks in advance
J.Hardy
-
hey, this looks like a easy one but i'm stumped
For Each dal As ArrayList In My.Settings
dal.RemoveAt(Me.TabControl.SelectedIndex)
Nextbasically what i am trying to do is for every arraylist remove a section of it, a error comes under my.settings saying that it is not a collection, can anyone help, thanks in advance
J.Hardy
Your settings is a collection of arraylists ? Are you sure ?
Christian Graus Driven to the arms of OSX by Vista.
-
Your settings is a collection of arraylists ? Are you sure ?
Christian Graus Driven to the arms of OSX by Vista.
i has about 20 different arraylist in it, just trying to remove a section out of each 1
J.Hardy
-
i has about 20 different arraylist in it, just trying to remove a section out of each 1
J.Hardy
Perhaps My.Settings is not a collection you can for each over, you can only access the values by name ? Or does My.Settings have a property that IS a collection, which you could use ?
Christian Graus Driven to the arms of OSX by Vista.
-
Perhaps My.Settings is not a collection you can for each over, you can only access the values by name ? Or does My.Settings have a property that IS a collection, which you could use ?
Christian Graus Driven to the arms of OSX by Vista.
well i had a look and could not find anything, sorry to ask this but can you give me a little more of a hint?
J.Hardy
-
well i had a look and could not find anything, sorry to ask this but can you give me a little more of a hint?
J.Hardy
I am on my Mac, I'd have to go and boot windows to have a dig around for you. I really don't know what My.Settings returns. The Property Grid can iterate over your settings, so there has to be a property. Just hit . after My.Settings and look through, there's got to be something, otherwise your other option ( as it appears to be a machine generated class from a config file ) is to use reflection.
Christian Graus Driven to the arms of OSX by Vista.
-
I am on my Mac, I'd have to go and boot windows to have a dig around for you. I really don't know what My.Settings returns. The Property Grid can iterate over your settings, so there has to be a property. Just hit . after My.Settings and look through, there's got to be something, otherwise your other option ( as it appears to be a machine generated class from a config file ) is to use reflection.
Christian Graus Driven to the arms of OSX by Vista.
ok, thanks
If at first you don't succeed redefine success J.Hardy