NotebookCurTab property (WinStudio scripts)
Applies To
IWSFormComponent interface, notebook objects
Definition
Sets or returns a string indicating which notebook tab is current.
Get Syntax
object.NotebookCurTab
Part | Description |
object | Required. A reference to a valid component object. |
Set Syntax
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. |
Remarks
In the Get syntax, the return value is a string containing the name of the current notebook tab.
Example
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