RE: Cffunction beware
This is very cool. However. If you get carried away with your #signs and write: #getpages(1,#variable#,3)# Ie, put pound signs inside the function, you get an error saying Missing argument name. which has nothing to do with your problem. So, use # signs correctly and don't put them in function calls! I think this all boils down to this advice; Learn to use # signs properly This bring up Ben Forta's To # or not to # article http://www.defusion.com/articles/index.cfm?ArticleID=26 Philip Arnold Technical Director Certified ColdFusion Developer ASP Multimedia Limited Switchboard: +44 (0)20 8680 8099 Fax: +44 (0)20 8686 7911 www.aspmedia.co.uk www.aspevents.net An ISO9001 registered company. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** __ 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
Re: Cffunction beware
Right, you want to do: getpages(1.variables.something,3), etc. On Thu, 6 Jun 2002, Andre Turrettini wrote: Hey guys. I've stumbled on an annoyance while usign the new cffunction tag that may waste your time. If you don't know, you can create udfs in cfml using the cffunction tag. Its pretty cool. Ie, you can now write a udf that does queries and stored procs and anything else that cfscript wouldn't do that cfml can. You call them like so #getpages(1,2,3)# or cfset this = getpages(1,2,3) This is very cool. However. If you get carried away with your #signs and write: #getpages(1,#variable#,3)# Ie, put pound signs inside the function, you get an error saying Missing argument name. which has nothing to do with your problem. So, use # signs correctly and don't put them in function calls! DRE __ 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 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
Re: Cffunction beware
Er, slight typo... getpages(1,variables.something,2,3); etc.. my bad. On Thu, 6 Jun 2002 [EMAIL PROTECTED] wrote: Right, you want to do: getpages(1.variables.something,3), etc. On Thu, 6 Jun 2002, Andre Turrettini wrote: Hey guys. I've stumbled on an annoyance while usign the new cffunction tag that may waste your time. If you don't know, you can create udfs in cfml using the cffunction tag. Its pretty cool. Ie, you can now write a udf that does queries and stored procs and anything else that cfscript wouldn't do that cfml can. You call them like so #getpages(1,2,3)# or cfset this = getpages(1,2,3) This is very cool. However. If you get carried away with your #signs and write: #getpages(1,#variable#,3)# Ie, put pound signs inside the function, you get an error saying Missing argument name. which has nothing to do with your problem. So, use # signs correctly and don't put them in function calls! DRE __ 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 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
RE: Cffunction beware
Hey guys. I've stumbled on an annoyance while usign the new cffunction tag that may waste your time. I believe that was the case with UDFs as well as BIFs (Built-In Functions) as well. Ben Johnson Hostworks, Inc. __ Get the mailserver that powers this list at http://www.coolfusion.com 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