realbasic-nug
[Top] [All Lists]

Re: Store colors in an array [Another 'Blame it on my blood sugar level'

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Store colors in an array [Another 'Blame it on my blood sugar level' moment]
From: Gary Edge <rb at panamind dot com>
Date: Tue, 28 Feb 2006 15:54:52 -0500
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> <B2BF86D6-9EBF-4069-827F-778AB27DFC8C at mac dot com>
I had already worked around the array problem but went back and put the parenthesis' in to see if it made a difference. Then I noticed that even though the array was being created in the function, It wasn't being returned to the calling method. The 'return c' was missing.

Thanks for the help

Gary

On Feb 28, 2006, at 3:23 PM, Tony Spencer wrote:

Well, you have no brackets on line 2...

On 28 Feb 2006, at 21:16, Gary Edge wrote:

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

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