Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabs.TabByName Property

Returns a SftTabsTab object given a tab name.

Syntax

Get
VBSet refTabObj = object.TabByName(ByVal TabName As String) As SftTabsTab

object

A SftTabs object.

TabName

The name of the tab to be accessed.

refTabObj

Returns a reference to the SftTabsTab object.

Comments

The TabByName property returns a SftTabsTab object given a tab name.

The TabByName property returns a SftTabsTab object for the desired tab named TabName. The name of the tab is defined using the Tab.Name property.

The properties of the tab can be updated using the returned SftTabsTab object.

Example

Private Sub Form_Load()
    Dim TabIndex As Integer
    Dim TabObject As SftTabsLib.SftTabsTab
    With SftTabs1.Direct
        .Tabs.Clear
        TabIndex = .Tabs.Add("First Tab")
        TabIndex = .Tabs.Add("Second Tab")
        .Tab(TabIndex).Name = "ImportantTab"
        TabIndex = .Tabs.Add("Third Tab")
    End With
    TabIndex = SftTabs1.TabByName("ImportantTab").Index
    SftTabs1.Tabs.Current = TabIndex
End Sub

See Also SftTabs Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.