RE: CF functions question

2008-03-16 Thread Jenny Gavin-Wear
Thanks Dominic, I'd forgotten the J -Original Message- From: Dominic Watson [mailto:[EMAIL PROTECTED] Sent: 03 March 2008 11:28 To: CF-Talk Subject: Re: CF functions question > > I would I would like to return the structure to the refering page, is > this poss

Re: CF functions question

2008-03-03 Thread Gerald Guido
>> I learned from experience Let me translate that: You learned the hard way. ;) I just got done pulling my hair out trying to update a variable that wasn't scoped. It was not being updated no matter what I did to it. EX: returningdate would return and empty string. It was only

RE: CF functions question

2008-03-03 Thread Brad Wood
e was a valid reason, or if it was just the token response to any thread involving cf functions. Dominic's response was convincing enough for me though. ~Brad -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2008 3:01 PM To: CF-Talk Subje

Re: CF functions question

2008-03-03 Thread Dominic Watson
> > Dom, > > Great example Lol thanks. I learned from experience and it was through exactly that (looping over an iterator and then calling a function that used the same throwaway variable name for its own loop iterator... server kept grinding to a halt for some reason :p)! -- Blog it up: h

RE: CF functions question

2008-03-03 Thread Mark Kruger
Dom, Great example -Original Message- From: Dominic Watson [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2008 2:24 PM To: CF-Talk Subject: Re: CF functions question No, you absolutely should var that variable, persistant component or UDF or whatever and I always var my

RE: CF functions question

2008-03-03 Thread Dave Watts
> To play Devil's advocate here-- other than standard coding > habits, why would one need to var these variables? This > function (in the example > given) is called in the context of the current page and is > not a method in any persisted component which could be > servicing multiple requests.

RE: CF functions question

2008-03-03 Thread Brad Wood
2:24 PM To: CF-Talk Subject: Re: CF functions question No, you absolutely should var that variable, persistant component or UDF or whatever and I always var my function and method variables (just lapsed in this silly example). This other silly example demonstrates why (run in a singl

Re: CF functions question

2008-03-03 Thread Dominic Watson
No, you absolutely should var that variable, persistant component or UDF or whatever and I always var my function and method variables (just lapsed in this silly example). This other silly example demonstrates why (run in a single template): #i# You'd expect the loop to

RE: CF functions question

2008-03-03 Thread Brad Wood
] Sent: Monday, March 03, 2008 8:59 AM To: CF-Talk Subject: Re: CF functions question Remember to var your variables! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the

Re: CF functions question

2008-03-03 Thread Nathan Strutz
Remember to var your variables! On Mon, Mar 3, 2008 at 4:27 AM, Dominic Watson < [EMAIL PROTECTED]> wrote: > Function code: > > > > > > > > > should be: -- nathan strutz http://www.dopefly.com/ ~|

Re: CF functions question

2008-03-03 Thread Dominic Watson
> > I would I would like to return the structure to the refering page, is > this possible, > please? > Sure is: Function code: Calling template: HTH Dominic -- Blog it up: http://fusion.dominicwatson.co.uk ~