realbasic-nug
[Top] [All Lists]

Re: Collection as Property?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Collection as Property?
From: Norman Palardy <palardyn at shaw dot ca>
Date: Thu, 30 Dec 2004 22:44:24 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <CC971A9A-5AE1-11D9-A51D-000D9332E452 at netbox dot com>

On Dec 30, 2004, at 9:09 PM, Ken Fleisher wrote:

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?

Do you have a

        tags = new Collection

anywhere ?

_______________________________________________
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>