[cfwheels] Re: Beginner Help with a Plugin JayKufner Sat Feb 25 17:00:42 2012
quick definition(no offenses intended if this is old hat to you.) If you have an function like this <cffunction name="doSomething"> <cfargument name="fe"> <cfargument name="fi"> <cfargument name="fo"> </cffunction> and you call it this way: doSomething(fe="one", fi="two", fo="three") you have used name arguments. This way: doSomething("one", "two", "three") you have used ordered arguments. The distinction between the two: With named arguments you assign a value to the parameter that is passed to the function , so you can write them in any order . With ordered arguments its assumed the order of parameters are fixed and the value you specify matches the order the in which the cfargument tag are written. First value maps to the first cfargument second to second Etc. Here's an great article (no surprises here ) from Ben Nadel about using ArgumentCollection and the use of ordered arguments. http://www.bennadel.com/blog/2042-ColdFusion-Ordered-ArgumentCollection-Behavior-Depends-On-ColdFusion-Version-And-Invocation-Context.htm Hope it helps if not its a fun read. -- You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group. To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/qKjP3N2Ue7QJ. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.
- [cfwheels] Beginner Help with a Plugin Tom Avey 2012/02/25
- [cfwheels] Re: Beginner Help with a Plugin JayKufner 2012/02/25 <=
- [cfwheels] Re: Beginner Help with a Plugin Tom Avey 2012/02/26