Re: How's dot.net doing nowadays?
- From: Robert Morley <rmorley@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Jan 2008 00:13:13 -0500
Okay, now this makes a bit more sense to me. It's still uncommon for me to want to intermix objects like this, but I can see a bit more how it could be useful at times.
I guess it comes from my database roots, but I still tend to think mostly in terms of a hierarchy, not in terms of similar-but-not-the-same objects, so this style of "a has identical properties to b, but is otherwise unrelated to it" is foreign to me.
> PData_PersonalData = "I haz customer"
Ummm...been programming in LOL Code recently, have we?
Rob
Steve Gerrard wrote:
Robert Morley wrote:.
' Class PData (interface)
Public Property Get PersonalData As String
End Property
' Class Customer
Implements PData
Private Property Get PData_PersonalData As String
PData_PersonalData = "I haz customer"
End Property
' Class Supplier
Implements PData
Private Property Get PData_PersonalData As String
PData_PersonalData = "I haz supplier"
End Property
' using it with a mixed collection of Customers and Suppliers
Dim PDataCol As Collection
Set PDataCol = New Collection
PDataCol.Add New Customer
PDataCol.Add New Supplier
PDataCol.Add New Supplier
PDataCol.Add New Customer
Dim oData As PData
For Each oData In PDataCol
Debug.Print oData.PersonalData
Next oData
- Follow-Ups:
- Re: How's dot.net doing nowadays?
- From: Steve Gerrard
- Re: How's dot.net doing nowadays?
- References:
- How's dot.net doing nowadays?
- From: MM
- Re: How's dot.net doing nowadays?
- From: David
- Re: How's dot.net doing nowadays?
- From: Chris Anderson [MVP-VB]
- Re: How's dot.net doing nowadays?
- From: Karl E. Peterson
- Re: How's dot.net doing nowadays?
- From: Chris Anderson [MVP-VB]
- Re: How's dot.net doing nowadays?
- From: Karl E. Peterson
- Re: How's dot.net doing nowadays?
- From: Chris Anderson [MVP-VB]
- Re: How's dot.net doing nowadays?
- From: MM
- Re: How's dot.net doing nowadays?
- From: Steve Gerrard
- Re: How's dot.net doing nowadays?
- From: Robert Morley
- Re: How's dot.net doing nowadays?
- From: Steve Gerrard
- Re: How's dot.net doing nowadays?
- From: Robert Morley
- Re: How's dot.net doing nowadays?
- From: Robert Conley
- Re: How's dot.net doing nowadays?
- From: Robert Morley
- Re: How's dot.net doing nowadays?
- From: Steve Gerrard
- How's dot.net doing nowadays?
- Prev by Date: Re: How's dot.net doing nowadays?
- Next by Date: Re: How's dot.net doing nowadays?
- Previous by thread: Re: How's dot.net doing nowadays?
- Next by thread: Re: How's dot.net doing nowadays?
- Index(es):
Relevant Pages
|
Loading