classcontractentrys.cls

来自「ERP合同变更ERP合同变更ERP合同变更ERP合同变更」· CLS 代码 · 共 78 行

CLS
78
字号
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "ClassContractEntrys"
Attribute VB_GlobalNameSpace = True
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
' The private collection object
Private m_ColClassContractEntrys As Collection


Private Sub Class_Initialize()

    Set m_ColClassContractEntrys = New Collection

End Sub


' This sub adds a new ClassContractEntry item to the collection.
Sub Add(ClaItem As ClassContractEntry, Optional VarKey As Variant)

    'TODO: Initialize the new ClassContractEntry item's properties here

    m_ColClassContractEntrys.Add ClaItem, VarKey

End Sub


' This sub remove an item from the collection.
Sub Remove(VarIndex As Variant)

    m_ColClassContractEntrys.Remove VarIndex

End Sub


' This function returns a ClassContractEntry item from the collection. It's the default method.
Function Item(VarIndex As Variant) As ClassContractEntry
Attribute Item.VB_UserMemId = 0

    Set Item = m_ColClassContractEntrys.Item(VarIndex)

End Function


' This property returns the number of items in the collection.
Property Get Count() As Long

    Count = m_ColClassContractEntrys.Count

End Property


' This sub remove all items from the collection.
Sub Clear()

    Set m_ColClassContractEntrys = New Collection

End Sub


' This function adds "For Each" enumeration support. Must have a -4 DispID.
Function NewEnum() As IUnknown
Attribute NewEnum.VB_UserMemId = -4

    Set NewEnum = m_ColClassContractEntrys.[_NewEnum]

End Function



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?