Alison Balteramp;#039;s Mastering Microsoft Office Access 1002003 [Electronic resources]

Alison Balter

نسخه متنی -صفحه : 544/ 219
نمايش فراداده

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

Property Set and its uses are covered in more detail in the later section "Building Hierarchies of Classes."