buildList( em : Employee; levl : Integer ) updating;   // add e to  the oids in the lbEmpls listbox

vars 
	sub 	: Employee;
	st	: String;

begin
	st := em.myDepartment.name  & ": " & 	// .add the person passed in, em.
											em.name 									& ", " & 
											em.msMrsMr 							& " "  & 
											em.firstName 							& ", " & 
											em.jobDesc                       &    "    (" & em.allSkills.size.String &")" ;  
	lbEmpls.addItem ( st );											
	lbEmpls.itemLevel 			[ lbEmpls.listCount ]	:= levl ;		// And set their level (levl).
	lbEmpls.itemExpanded	[ lbEmpls.listCount ]	:= true ;	// And expand any subtree
											
	if em.allSubordinates.size>0 then											// then recursively add all subordinates
		foreach sub  in em.allSubordinates do
			buildList ( sub, levl + 1 );
		endforeach;
	endif;
end;

===============================================================