realbasic-nug
[Top] [All Lists]

Re: Store colors in an array

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Store colors in an array
From: Phil M <phil at mobleybros dot com>
Date: Tue, 28 Feb 2006 12:46:27 -0800
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <31F233E8-AF2B-4E05-ACF6-4513DCFEAB81 at panamind dot com> <a06200700c02a534fd55d at [10 dot 71 dot 2 dot 34]> <43EDD89F-10CF-4955-A3EF-8CAED38B068A at panamind dot com>
On Feb 28, 2006, at 12:16 PM, Gary Edge wrote:

Sorry for not clarifying. The array is returned from the function which creates it to a method that defines the local variable colors().

For example:

dim colors(-1) as color
colors = getColorArray()
for i = 0 to ubound(colors)
g.forecolor = colors(i) // crashes here with debugger quitting back to the IDE
        g.drawline ...
next

Where getColorArray is:

dim c(-1) as color

c.append &c75A2DD
etc...

return c

Well, that is a big relief... for a minute there I thought that you meant that all Color arrays would have this behavior.

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