Isaac, Isn't CFProperty mostly for documentation at the CFC level, and doesn't actually create any variables? Use CFArgument to declare and default arguments in methods and <CFSET instance.FOO=StructNew> to declare private properties.
Andy -----Original Message----- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Saturday, August 30, 2003 2:14 PM To: CF-Talk Subject: cfproperty default attribute is buggy Has anybody else on the list seen this behavior: CFMX 6.1 - certain values can not be used in the default attribute of the cfproperty tag: <cfproperty type="struct" default="#structnew()#"> produces error "Complex object types cannot be converted to simple values." <cfproperty type="array" default="#arraynew(1)#"> produces error message "5" <cfproperty type="string" default="#request.mystruct.mycustomfunction()#"> produces error "Method "mycustomfunction" with 0 arguments is not in class coldfusion.runtime.CFPage" <cfproperty type="string" default="#getbasetemplatepath()#"> produces error message "7" Also, simple values are allowed when type indicates a non-simple value, i.e. <cfproperty type="struct" default=""> which should produce an error In all cases, I've been able to use <cfset> further down in the cfc to set the property to the desired default value... but I'd really much rather have a proper default. thanks, s. isaac dealey 972-490-6624 team macromedia volunteer http://www.macromedia.com/go/team chief architect, tapestry cms http://products.turnkey.to onTap is open source http://www.turnkey.to/ontap ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm