robtyketto
Member
- Joined
- Jul 23, 2009
- Messages
- 23
- Programming Experience
- Beginner
Greetings,
I would like to use structures within my app to group/relate items that are of different data types i.e. string, integer, picture box etc..,
I have the knowledge to create a structure but not to loop through the instances of a structure.
As I have created instances of the structure in my example code (see link)
Im confused how to reference them as I only know how to declare a instance of the structure with a different name.
I believe you cannot use an array to stores instances of a structure.
How can i reference instances of the structure via the index value in a for each loop for an example?
Is it possible to store a collection of instances under one name and reference via index?
Also as structures can use methods, properties etc.., were they used in the past prior to classes being implemented in visual basic?
Code link:
VB.NET pastebin - collaborative debugging tool
Any feedback would greatly be appreciated.
Thanks
Rob
I would like to use structures within my app to group/relate items that are of different data types i.e. string, integer, picture box etc..,
I have the knowledge to create a structure but not to loop through the instances of a structure.
As I have created instances of the structure in my example code (see link)
Im confused how to reference them as I only know how to declare a instance of the structure with a different name.
I believe you cannot use an array to stores instances of a structure.
How can i reference instances of the structure via the index value in a for each loop for an example?
Is it possible to store a collection of instances under one name and reference via index?
Also as structures can use methods, properties etc.., were they used in the past prior to classes being implemented in visual basic?
Code link:
VB.NET pastebin - collaborative debugging tool
Any feedback would greatly be appreciated.
Thanks
Rob