• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Exploiting the Power of Clas... > Setting Values with Property Set

Setting Values with Property Set

Whereas a Property Let stores a value in a property, a Property Set is used to store a reference to an object in a property. It looks like this:

Private mobjCustomer as Customer

Public Property Set GoodCustomer(objCustomer as Customer)
     Set mobjCustomer = objCustomer
End Property


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint