Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

HTML Reference
Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

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

Orvado Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"I only regret that I have one life to lose for my country." - Nathan Hale

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.