<cfset rowColorName = "rowColor"> 1)<cfset rowColour = ""> 2)... 3)... 4)<cfif theCount mod 2 eq 0> 5) <cfset "#rowColorName#" = colourA> 6)<cfelse> 7) <cfset "#rowColorName#" = colourB> 8)</cfif>
<cfoutput>#rowColor#</cfoutput> The only way I can see to do it Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Warren Sent: Wednesday, April 02, 2003 10:02 AM To: CFAussie Mailing List Subject: [cfaussie] OT: Force variables to be declared is there a CF version of "option explicit" (ASP) to force variables to be declared to cut down on typo's 1)<cfset rowColour = ""> 2)... 3)... 4)<cfif theCount mod 2 eq 0> 5) <cfset rowColour = colourA> 6)<cfelse> 7) <cfset rowColor = colourB> 8)</cfif> look at line 7. I've accidentally declared a new variable! any way around this? --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
