SET CLASSLIB TO MyPages.Vcx This.AddObject("MyNewPage1", "pagBase") This.AddObject("MyNewPage2", "pagBase") This.RemoveObject(This.Pages(1).Name)