Re: How's dot.net doing nowadays?
- From: "Steve Gerrard" <mynamehere@xxxxxxxxxxx>
- Date: Tue, 22 Jan 2008 20:19:49 -0800
Robert Morley wrote:
The examples with the Implements help show the basic concept well
enough, and it seems to be the same sort of setup you were talking about, but
if I were going to use that sort of setup, I'd simply include a
PersonalData property in whatever classes I needed (in that example,
it would be Customer.PersonalData and Supplier.PersonalData) and be
done with it. The whole Implements concept as it's done in VB6 has
never made sense to me.
Perhaps you can explain it in a way that does, but your previous
example was too convoluted for me to follow without concrete code to
follow.
' 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: Robert Morley
- 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
- 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
|