realbasic-nug
[Top] [All Lists]

Collection as Property?

To: realbasic-nug at lists dot realsoftware dot com
Subject: Collection as Property?
From: Ken Fleisher <PT_Ken at netbox dot com>
Date: Thu, 30 Dec 2004 23:09:43 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
I have defined a property of a custom class (called ICCProfile) as a collection:

Tags As Collection

In a method within the ICCProfile class, I am trying to add objects to that collection:

Dim c As customClass
c = new customClass
// Add values to properties of c here
Tags.Add c, "key"    // This line gives me a nilObjectException

Am I trying something that is not allowed or do I just have the syntax wrong?

Thanks.

Ken

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>