AddSequence

>>-aTabControl~AddSequence(--text1--,--text2--,--text3--,--...--)-><


The AddSequence method inserts a sequence of tabs in a tab control for which you can only specify the label text. The number of the tab inserted last is increased by 1.

Arguments:

The only argument is:

text

The label text for the inserted tab.

Return value:

The number of the tab inserted last, or -1 for all other cases.

Example:

The following example inserts three tabs in a tab control:

::method InitDialog
  InitDlgRet = self~InitDialog:super
  curTab = self~GetTabControl("ID_TAB")
  if curTab \= .Nil then do
    curTab~AddSequence("First Tab","Second Tab","Third Tab")
  end
return InitDlgRet