realbasic-nug
[Top] [All Lists]

Re: Pictures Arrays

To: "REALbasic Network Users Group" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Pictures Arrays
From: Seth Willits <seth at freaksw dot com>
Date: Sun, 29 Feb 2004 15:36:11 -0800
References: <C7E2103F-6A4C-11D8-9B5C-00039375E146 at domainsoftworx dot com> <497704E4-6A51-11D8-B0BD-000393C0FE92 at 006 dot co dot uk> <E8A47C18-6AB9-11D8-B16D-00039375E146 at domainsoftworx dot com> <F18F1F68-6B0D-11D8-A166-000A95E5BFF4 at wabbitwanch dot com>
On Feb 29, 2004, at 3:21 PM, Mel Patrick wrote:

Assume for a moment, you have a global array of PICTures (either created with New Picture or OpenAsPicture) and you want to get rid of one of these puppies but keep the array subscript around.

Can you just assign Nil to the array variable to dispose of the picture

Yes.


or is there a better way to do it?

I don't understand. If you simply want to destroy the picture but keep the array intact, then just assign nil to the array index.



Secondly, if you wanted move a PICTure from one array subscript to another one, it seems to me that you can't use a A(1)=A(2) sort of thing (although I forget why or maybe I remember wrong). What's the accepted way to do this?

You certainly can do that.




Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames

"There are 10 types of people in this world - those that understand binary
and those that don't."
------------------------------------------------------------------------ ---


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

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

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