If it sped it up, it would have to be by such a small amount that I doubt it would matter. I know scoping is supposed to make it speed up but that too makes such a small difference in the over all performance of things. I guess it might matter if on a server with a lot of CFM pages and all those tiny little savings added up to something that could be measured.
On 7/16/07, Sammy Larbi <[EMAIL PROTECTED]> wrote: > > > Angeli Wahlstedt wrote, On 7/16/2007 12:20 PM: > > > > Call me a bit nitpicky....:-) But I'd like to point out that you don't > > need to use #'s in expressions like goo [#counter#], as that's rather > > redundant. You only need to use #'s in content between certain CF tags > > (like cfoutput and cfquery) and in strings. It's been my understanding > > that removing unneeded #'s is supposed to speed up the code somewhat. > > > > I don't know that it speeds up the code (and I don't think I'd care if > it did so minutely), but it certainly speeds up my reading of the code. > It's just redundant clutter that should be done away with for > readability purposes. > > In my opinion, of course. > > Sam > > > > -- Angeli Wahsltedt > > > > ------------------------------------------------------------------------ > > > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > > Behalf Of *Aaron Rouse > > *Sent:* Monday, July 16, 2007 11:24 AM > > *To:* [email protected] > > *Subject:* [houcfug] Re: string concatenation and Evaluate > > > > It is best to avoid Evaluate as much as possible. Although doubtful it > > would bite you on something that simple. I have worked on projects > > where evaluate was over used and did create problems with CF. > > > > On 7/16/07, *Mark Davis* <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > > > Nevermind...I figured it out... > > > > <cfloop from="1" to="#counter#" index="i"> > > > > <cfset session.PARCAdmin.ChildOffer[#counter#] = structnew()> > > > > <cfset session.PARCAdmin.ChildOffer[#counter#].childOfferName = > > evaluate("form.childoffer_" & i)> > > > > <cfset session.PARCAdmin.ChildOffer[#counter#].childOfferRelationship > > = Evaluate("form.relationshiptype_" & i)> > > > > </cfloop> > > > > Need more coffee > > > > Mark Davis > > Cricket Communications > > Software Engineer III > > > > 303-734-7694 (w) > > > > ------------------------------------------------------------------------ > > > > *From:* Mark Davis > > *Sent:* Monday, July 16, 2007 10:04 AM > > *To:* '[email protected] <mailto:[email protected]>' > > *Subject:* string concatenation and Evaluate > > > > Alright...not sure why I am having such trouble making this work... > > > > I have a set of x number of form variables named as such... > > > > Form.childOffer_1 > > > > Form.childOffer_2 > > > > ..... > > > > After form submission, I need to loop thru those and set the values > > into different structs, like this... > > > > <cfloop from="1" to="#form.counter#" index="i"> > > > > <cfset session.PARCAdmin.ChildOffer[#counter#] = structnew()> > > > > <cfset session.PARCAdmin.ChildOffer[#counter#].childOfferName = #No > > Workie Here#> > > > > </cfloop> > > > > The value needs to have form.childOffer concatenated with the value of > > I, then evaluated to get the value. > > > > Any suggestions? I know I am missing something obvious. > > > > Mark Davis > > Cricket Communications > > Software Engineer III > > > > 303-734-7694 (w) > > > > > > > > > > -- > > Aaron Rouse > > http://www.happyhacker.com/ > > > > > > > > > > > > -- Aaron Rouse http://www.happyhacker.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Houston ColdFusion Users' Group" discussion list. To unsubscribe, send email to [EMAIL PROTECTED] For more options, visit http://groups.google.com/group/houcfug?hl=en -~----------~----~----~----~------~----~------~--~---
