hi
I have searched the forum but have not found anything.
I would like an example of a list of objects
I would like to create a list of objects and then implement properties.
Example
if I have an array I can do this:
Dim a as oggetto
Dim x(10) as oggetto
a.initialize(10,10,10,10)------ '(x,y,g,h)
x(0) = a
x(0).g = 12 'IS POSSIBLE
if i have a list:
dim a as oggetto
dim b as list
a.initialize(10,10,10,10)
b.add(a)
b(0).g = 12 'ISNT POSSIBLE ?????? in visual basic 2010 is possible
you can declare a list of a certain type?
how should I do to implement the properties of the object in the list?
I apologize for my poor English
thanks much
I have searched the forum but have not found anything.
I would like an example of a list of objects
I would like to create a list of objects and then implement properties.
Example
if I have an array I can do this:
Dim a as oggetto
Dim x(10) as oggetto
a.initialize(10,10,10,10)------ '(x,y,g,h)
x(0) = a
x(0).g = 12 'IS POSSIBLE
if i have a list:
dim a as oggetto
dim b as list
a.initialize(10,10,10,10)
b.add(a)
b(0).g = 12 'ISNT POSSIBLE ?????? in visual basic 2010 is possible
you can declare a list of a certain type?
how should I do to implement the properties of the object in the list?
I apologize for my poor English
thanks much
Last edited: