Defines the tab's application-defined Variant value.
Get
| VB | vData = object.Tag1 As Variant |
Put
| VB | object.Tag1 = vData As Variant |
object
vData
The Variant data stored with the tab described by object. This data is application defined and is not used by the tab control in any way.
The Tag1 property defines the tab's application-defined Variant value.
The Tag1 and Tag2 properties can be used to store application defined data (including object references). Tag1 and Tag2 are distinct properties.
See MDITab Sample
Dim iTab As Integer
lDocumentCount = lDocumentCount + 1
Set frmD = New frmDocument
frmD.Caption = "Document " & lDocumentCount
frmD.Show
' Add a new tab associated with this MDI child window
' We'll save a reference to the form object in the tab's Tag1
' property
With SftTabs1.Direct
' add the tab
iTab = .Tabs.Add(frmD.Caption)
' define colors
.Tab(iTab).BackColorStart = &HFEECDD
.Tab(iTab).BackColorEnd = &HE2A981See Also SftTabsTab Object | Object Hierarchy