If you look at the Add method, the new prompt, cPrompt, is being added to the Windows tab control, but not to the aPrompts array of the FW Tab object. Apparently, aPrompts is not being used anywhere, so it doesn't really matter that it is not being updated in the Add() method.