Graaaaahhhhh! Why can't I figure this out??!?
I'm trying to make a user-defined Collection to hold instances of a user-defined Class Object. But I can't figure out how to do it because all of the Tutorials I've been able to find on the subject say that you need to define the Class and the Collection in different Code Modules but don't show you where one Module ends and another starts. Most of them also make some incredibly frustrating assumptions, like they're trying to explain the concept to someone that already knows what they're talking about! >:(
Anyway, first issue: My custom Class. I've got the basic code figured out (I think) with the variables that the Object will hold and some Get/Let Properties:
Module: tSortItem
Code:
Option Compare Database
Option Explicit
Public tIndex As Long
Public tLastUpdated As Date
Public tName As String
' Index is read/writeable
Property Get Index() As Long
Index = tIndex
End Property
Property Let Index(Value As Long)
tIndex = Value
End Property
' LastUpdated is read/writeable
Property Get LastUpdated() As Date
LaqstUpdated = tLastUpdated
End Property
Property Let LastUpdated(Value As Date)
tLastUpdated = Value
End Property
' Name is read/writeable
Property Get Name() As String
Name = tName
End Property
Property Let Name(Value As String)
tName = Value
End Property
Is there anything else I need to add to this code?