Manipulating Data Using Collections and Classes

Lists, Collections and Arrays

Version Compatibility: Visual Basic 6

More information:
The small application included in this download shows how a VB Class and Collection can be used to manipulate data in memory. It is a very simple example showing some intermediate-advanced techniques of data manipulation. To handle a lot of data, newbies normally use arrays, so I hope this example will help them understand Collections and Classes and appreciate their worth. You could use the technique showed in this example to manipulate data in memory, then you could save it in an XML file or database. You could load database table info and manipulate it or update it. You could do a lot with much less code without breaking a sweat. The code in the Employee and EmployeeCollection classes are commented. I recommend you look at the Employee Class first and understand it. Then look at the EmployeeCollection Class and read the code in the form.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.