R
RSH
Hi,
I have a situation where I have a Parent Object (Company) which has several
public properties. The Company Object also creates an Employees object
which has its ow set of functions and properties. I am trying to figure out
how to access the Parent properties from the child object.
Simplified example:
Class Company
Public ReadOnly Property Employees() As Employees
Public Sub New(ByVal CompanyID As String)
_CompanyID = CompanyID
_Employees = New Employees(_CompanyID)
End Sub
Get
Return _Employees
End Get
End Property
Public ReadOnly Property CompanyID() As String
Get
Return _CompanyID
End Get
End Property
Public Property DateLow() As Date
Get
Return _DateLow
End Get
Set(ByVal Value As Date)
_DateLow = Value
End Set
End Property
Public Property DateHi() As Date
Get
Return _DateHi
End Get
Set(ByVal Value As Date)
_DateHi = Value
End Set
End Property
End Class
Class Employees
End Class
Thanks,
Ron
I have a situation where I have a Parent Object (Company) which has several
public properties. The Company Object also creates an Employees object
which has its ow set of functions and properties. I am trying to figure out
how to access the Parent properties from the child object.
Simplified example:
Class Company
Public ReadOnly Property Employees() As Employees
Public Sub New(ByVal CompanyID As String)
_CompanyID = CompanyID
_Employees = New Employees(_CompanyID)
End Sub
Get
Return _Employees
End Get
End Property
Public ReadOnly Property CompanyID() As String
Get
Return _CompanyID
End Get
End Property
Public Property DateLow() As Date
Get
Return _DateLow
End Get
Set(ByVal Value As Date)
_DateLow = Value
End Set
End Property
Public Property DateHi() As Date
Get
Return _DateHi
End Get
Set(ByVal Value As Date)
_DateHi = Value
End Set
End Property
End Class
Class Employees
End Class
Thanks,
Ron