realbasic-nug
[Top] [All Lists]

Store colors in an array

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Store colors in an array
From: Gary Edge <rb at panamind dot com>
Date: Tue, 28 Feb 2006 11:42:17 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
I'm trying to store colors in an array:

dim colors(-1) as color

colors.append &c75A2DD
etc...

Then in another method write:

for i = 0 to ubound(colors)
    g.forecolor = colors(i)  // crashes here
    g.drawline ....
next

Can colors be stored in a array that way?

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