I receive the error in the title bar as a result of the following code but I can't see what I'm doing wrong:
<cfcomponent hint="sets background colour to help users see where they are during booking">
<cffunction name="cellcolour" returntype="struct">
<cfargument name="progressstage" type="string" required="true">
<cfset var stagecol="StructNew()">
Thew line where the error occurs is <cfset stagecol.colour1="#oncolour#">.
Thanks in advance for any advice
1. Are you using cftry/catch in our component? In some CF verison (at least), var scoped variables couldn't be referenced in cfcatch block.
2. What is your function returning? Is it a structure? Try removing the returntype attribute of the function.
3. Double check for overlapping variable names - try to change your variable names in the function and check if that helps.
And P.S. <cfset stagecol.colour1="#oncolour#"> is better and clearer written as <cfset stagecol.colour1 = oncolour>
Never use pound signs until you're outputting something, or dynamically evaluating a variable name.