number of colornames?
wayne durden
wdurden at gmail.com
Sun Feb 11 15:44:28 EST 2007
Hi Joe:
I actually discovered that fact too by adding additional numbers to my loop
(actually 15 more cds with 100 colors each til the end). But the problem is
why does the number of lines of colornames() yield fewer? The number of
lines of colornames yields 552, but there look to be about 2000'ish
colornames?
My suspicion is that this is related to associative array with same name
issues but not sure. More importantly how ahead of time would I structure
the loop to take me to the end? Perhaps a while not "" I guess? Thanks
Joe!
wayne
On 2/11/07, Joe Lewis Wilkins <pepetoo at cox.net> wrote:
>
> Hi Wayne,
>
> I'm pretty sure that if you refer to the lines in the colornames, you
> can access them all. For example using "put the last line of the
> colornames" in the msg box returns "YellowGreen", which is probably
> the last color. Try it.
>
> HTH,
>
> Joe Wilkins
>
> On Feb 11, 2007, at 11:47 AM, wayne durden wrote:
>
> > Hi all! I have a question regarding the colornames. I was doing a
> > simple
> > exercise with a script that was creating cards with a hundred
> > colors per
> > card with a field with their name and their rgbcolor.
> >
> > In doing so, I have hit a headscratcher.... Putting the number of
> > lines of
> > colornames() yields 552. However, in building my cards this only
> > gets me
> > into the "g's" with regard to the colors (i.e., greys, green).
> > There are
> > far more colors than the number of lines of colornames?
> >
> > Sorry if this turns out to be a ridiculous oversight somewhere.
> >
> > wayne
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list