Articles
DevASP - ASP and XML Articles, Samples, Toturials, Sample Chapters and resources for Developers Saturday, December 20, 2014
Home
Articles & Samples
Dev Search
Sample Chapters
Link to US
Contact
Search Directory
Applications
Articles & Samples
Components
Community
Database
Developer Sites
Downloads
Hosting Services
Introduction
Knowledge Base
Sample Chapters
WebCasts
ASP Directory
Applications
Articles & Samples
Components
Developer Sites
Knowledge Base
Sample Chapters
WebCasts
XML Directory
Applications
Articles & Samples
Developer Sites
Error, Bugs & Fixes
Downloads
Introduction
Knowledge Base
Sample Chapters
WebCasts

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Report Error:
Home > Search > Applications > ASP > Organizers
Writing Objects Returning Other Objects       
Total Hits: 275  |  Today: 0 Author: Peter Persits       Rating:  
Read Reviews | Write Review |              Your Rating: 

This articles demonstrates how to write an object which returns another object. Our component (which we will call ParentChild) will host two objects, Parent and Child. The Parent object will be createable via the Server.CreateObject statement. The Child object, on the other hand, will not have a ProgID of its own. It will be created by calling Parent's method CreateChild, as follows:

Set Parent = Server.CreateObject("ParentChild.Parent")
Set Child = Parent.CreateChild
Child.SomeMethod

If you would like to report an error or update for this listing please complete the form below.
Note: a Valid email is required for update request

Error/Update Type:   *
Description:
(Optional)
Your Name:   (Optional)
Your Email Address:   (Optional)
   

<< Back to listing

DevASP - Privacy - Disclaimer
Copyright 2008 DevASP.com