Can I ask why you are using the server scope??  It would seem to me this is
best suited in the Session scope, or Application scope.

By putting it in the Server scope, you are saying that ALL other
applications on the server can access/change those variables.  I'd try to
keep my applications self contained... fewer errors and easier to debug.

As for your error, it would appear to me that your server variables are
having problems.  A restart of your server may fix that problem.  If so,
then try to use the session scope.

Shawn Grover

-----Original Message-----
From: Fuon See Tu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 5:06 PM
To: CF-Talk
Subject: Re: alternating colors, last week and a structure problem.


you're treating the structure as an array :P  why dont u just do an arraynew

instead of structnew




Pooh Bear
Web App Developer
Picture Below (chicks dig my head!)
<HTML>
<HEAD></HEAD>
<BODY>
<IMG SRC="http://www.geocities.com/kickerazn_2000/sniffles_138x92.jpg";>
</BODY>
</HTML>



>From: "Paris Lundis" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: alternating colors, last week and a structure problem.
>Date: Tue, 04 Sep 2001 18:48:58 -0400
>
>so last week we talked about alternating rows and coloration...
>
>I took a tidbit of the code which involved creating a structure to do
>this.. makes a lot of sense.. I thought....
>
>so we have a main application.cfm that is the same throughout our
>site.. it is universal..
>
>we put this in there:
>
><cfscript>
>    server.mycolor = structnew();
>    server.mycolor[0] = '##FFFFFF';
>    server.mycolor[1] = '##CCCCCC';
></cfscript>
>
>so that works and had for a week or more...
>
>then today we start seeing errors all over the place...
>
>in summary:
>
>An error occurred while evaluating the expression:
>
>
>       server.mycolor= structnew();
>       server.mycolor[0]='##FFFFFF';
>       server.mycolor[1]='##CCCCCC';
>
>
>
>
>Error near line 4, column 2.
>------------------------------------------------------------------------
>--------
>
>Cannot assign result to symbol server.mycolor
>
>
>
>Now what does that mean :)
>
>-paris
>the unstructured sort of person...
>[finding the future in the past, passing the future in the present]
>[connecting people, places and things]
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to