Property Set
The Property Set statement allows you to declare
an accessor method for an object within a Class
definition. An accessor method allows the person who
creates an instance of the class to pass it a reference to
another object.
So why would you want to pass one object to another? Well,
consider that you have an object that needs to receive an
ADO recordset object from the user in order to perform some
formatting of the results. In this case you would need to
define a Property Set method.
Class DBDisplay Dim m_oRS
' pass in a recordset and store in m_oRS
Property Set Recordset(rsResults) Set m_oRS = rsResults End Property End Class
|
 |

|