The code is set up so that there are two separate lists and the position in the lists is what links the department with the person. If a person runs two departments then their name has to appear twice in the people list to align with the two departments.
The strings used to populate the depts and people arrays are separated by the | character. Make sure that you have the same number of entries in depts as you do in people.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|