method Pages.Add (Caption as String, Key as String, [Image as Variant])
Adds a Page object to the collection and returns a reference to the newly created object.

TypeDescription
Caption as String A string expression that indicates the page's caption, which support built-in HTML format.
Key as String A string expression that indicates the page's key. If the Key is empty, the caption is used by Item property instead.
Image as Variant A long expression that indicates the index of page's icon
ReturnDescription
PageA Page object being created.

Use the Add method to add new pages to the control. Use the Item property to access a Page object given its key, caption or index. Use the Template editor to add new pages to the control in design mode. For instance, the following sample adds two new pages to the control using X-Language:

Pages
{
    Add("Tab 1", "Tab1", 1)            ' Adds a page titled "Tab 1", that has the Key = "Tab1", and the Image = 1 
    {
        UserData = "Associates an extra data to the page"
    }
    Add("Tab 2", "Tab2", 2)            ' Adds a page titled "Tab 2", that has the Key = "Tab2", and the Image = 2 
    {
        UserData = "Associates an extra data to the page"
    }
}

Use the Add method at runtime only if you want to handle inside controls by yourself. As well, the Remove method should be used in the same manner.  Use the Visible property if you need to hide a page.

The Caption parameter supports: