Language Reference Guide : System Classes : TabFolder Class : AddTabPage Method
 
Share this page          
AddTabPage Method
The AddTabPage method is used to populate the TabFolder with TabPages and TabFields.
This method has the following syntax:
integer = TabFolder.AddTabPage([subform = SubForm]
          [, tabfield = TabField][, tabtext = varchar(100)]
          [, tabbitmap = BitmapObject][, pagenum = integer])
This method has the following parameters:
Note:  All parameters are optional.
subform
Specifies the subform name. If subform is passed, the TabPage is displayed identically to the passed subform. If subform is not passed, an empty TabPage is created.
tabfield
Specifies the TabField directly. Alternatively, you can use the tabtext and tabbitmap parameters.
tabtext
Specifies the text for the tab. For more information, see TabField Class.
tabbitmap
Specifies a bitmap to use on the tab. For more information, see TabField Class.
pagenum
Specifies the page number of the tab