Re: How's dot.net doing nowadays?



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



.



Relevant Pages

  • Denied Connection Errors for NetBios Name and Session (137 and 139
    ... Scenario: Customer and Supplier offices. ... TCP 139 NetBios Session from Local Host to Customer VPN. ...
    (microsoft.public.isa.vpn)
  • NetBios 139/137 IP traffic causes Denied Connection and wont go a
    ... Scenario: Customer and Supplier offices. ... TCP 139 NetBios Session from Local Host to Customer VPN. ...
    (microsoft.public.isa.configuration)
  • Re: XP Requirement Analysis?
    ... problem with a formal contract between customer and supplier. ... agile methods are just a return to the hacking of '60s. ... Is waterfall dead, or merely moribund? ...
    (comp.object)
  • Re: simple advise needed on contracts
    ... I received an order from a UK customer for 1 load ... I agreed this with my supplier. ... so the customer can't buy elsewhere at the same price and is ... At what point did I agree to the verbal contract? ...
    (uk.legal)
  • Re: active directory project
    ... bought had no domain. ... customer individually and together with the ex-owner of the company he was ... acquiring as to what to expect, features, bennies, etc, and incorporating ... Mobile units, laptops to use Outlook Anwhere, VPN setup, GPO controlled MY ...
    (microsoft.public.windows.server.active_directory)