WinStudio
IWSFormComponent interface, notebook objects
Sets or returns a string indicating which notebook tab is current.
object.NotebookCurTab
Part |
Description |
object | Required. A reference to a valid component object. |
object.NotebookCurTab = string
Part |
Description |
object | Required. A reference to a notebook component object. |
string | Required. A reference to the notebook tab that is to be set as the currently active tab. |
In the Get syntax, the return value is a string containing the name of the current notebook tab.
Sub Main() Dim oComponent As IWSFormComponent oComponent = ThisForm.Components("notebook1") Application.ShowMessage(oComponent.NotebookCurTab) If oComponent.NotebookCurTab = "notebookTab1" Then oComponent.NotebookCurTab = "notebookTab2" Else oComponent.NotebookCurTab = "notebookTab1" End If Application.ShowMessage(oComponent.NotebookCurTab) End Sub