RE: [ cf-dev ] for loops...

2002-11-29 Thread Justin MacCarthy
name > } > > > > > Justin > > > -Original Message- > > From: Paul Johnston [mailto:[EMAIL PROTECTED]] > > Sent: 29 November 2002 14:24 > > To: [EMAIL PROTECTED] > > Subject: RE: [ cf-dev ] for loops... > > > > > > If you really want to

RE: [ cf-dev ] for loops...

2002-11-29 Thread Justin MacCarthy
tring name ) { new thing called name } Justin > -Original Message- > From: Paul Johnston [mailto:[EMAIL PROTECTED]] > Sent: 29 November 2002 14:24 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] for loops... > > > If you really want to get technical (

RE: [ cf-dev ] for loops...

2002-11-29 Thread Aidan Whitehall
> If you really want to get technical (ie a proper OO language) > [snip] Thanks for all the info. That's reet bo. -- Aidan Whitehall <[EMAIL PROTECTED]> Macromedia ColdFusion Developer Fairbanks Environmental +44 (0)1695 51775 __

RE: [ cf-dev ] for loops...

2002-11-29 Thread Paul Johnston
ct PJ Net Solutions Ltd http://www.pjnetsolutions.com +44 (0)7866 573013 > -Original Message- > From: Aidan Whitehall [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 29, 2002 2:07 PM > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] for loops... > > > > you&#x

RE: [ cf-dev ] for loops...

2002-11-29 Thread Justin MacCarthy
Aidan Whitehall [mailto:[EMAIL PROTECTED]] > Sent: 29 November 2002 14:07 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] for loops... > > > > you've got two functions with the same name, but different amount of > > arguments. so if you call function(arg1), it'll

RE: [ cf-dev ] for loops...

2002-11-29 Thread duncan . cumming
cc: 11/29/02 02:01 PM Subject: RE: [ cf-dev ] for loops... Please respond

RE: [ cf-dev ] for loops...

2002-11-29 Thread Aidan Whitehall
> you've got two functions with the same name, but different amount of > arguments. so if you call function(arg1), it'll do the function that > accepts 1 argument. if you call function(arg1, arg2), it'll do the > function that takes 2 arguments. very useful. Ahh... I see. Thanks. -- Aidan Wh

RE: [ cf-dev ] for loops...

2002-11-29 Thread Russ 'Snake' Michaels
yeah, just bung 5000volts through it -Original Message- From: Justin MacCarthy [mailto:[EMAIL PROTECTED]] Sent: 29 November 2002 14:00 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] for loops... o LOL, seriously ? without using arguments.length type thing

RE: [ cf-dev ] for loops...

2002-11-29 Thread duncan . cumming
uk>cc: Subject: RE: [ cf-dev ] for loops... 11/29/02 01:59 PM

RE: [ cf-dev ] for loops...

2002-11-29 Thread Aidan Whitehall
> Someone will tell me you can overload functions next.. I've seen this mentioned many times, although not necessarily in CF circles. What *is* overloading a function? Tell me to RTFM if it's applicable, but a pointer to a decent M would help. Thanks -- Aidan Whitehall <[EMAIL PROTECTED]> Ma

RE: [ cf-dev ] for loops...

2002-11-29 Thread Justin MacCarthy
o LOL, seriously ? without using arguments.length type thing ? Justin > -Original Message- > From: Russ 'Snake' Michaels [mailto:[EMAIL PROTECTED]] > Sent: 29 November 2002 13:41 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ]

RE: [ cf-dev ] for loops...

2002-11-29 Thread Russ 'Snake' Michaels
you can -Original Message- From: Justin MacCarthy [mailto:[EMAIL PROTECTED]] Sent: 29 November 2002 13:40 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] for loops... Thank god, I've been grumbling about that... Someone will tell me you can overload functions next.. Justin

Re: [ cf-dev ] for loops...

2002-11-29 Thread Stephen Moretti
Oh well. That's what taking cold remedies for the past 4 days does to you - Original Message - From: "Spike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 29, 2002 1:34 PM Subject: RE: [ cf-dev ] for loops... > Nah, > > I

RE: [ cf-dev ] for loops...

2002-11-29 Thread Justin MacCarthy
Thank god, I've been grumbling about that... Someone will tell me you can overload functions next.. Justin > Nah, > > It doesn't work in either of those on my machine. > > :-( > > Spike > > > i++??? really ? > > > > > > > ermmm... CFMX I believe or it might have been > > bluedragon.

Re: [ cf-dev ] for loops...

2002-11-29 Thread Ian Westbrook
> Try cgi.SCRIPT_NAME scorchio! well, that settles the question of whether I rebuild one of my sites in CF or PHP ;-) Ian W - Original Message - From: "Justin MacCarthy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 29, 2002 1:20 PM Su

RE: [ cf-dev ] for loops...

2002-11-29 Thread Spike
oretti [mailto:[EMAIL PROTECTED]] > Sent: 29 November 2002 14:23 > To: [EMAIL PROTECTED] > Subject: Re: [ cf-dev ] for loops... > > > > > > i++??? really ? > > > > ermmm... CFMX I believe or it might have been > bluedragon.. CF 5 is still a pain with i=

Re: [ cf-dev ] for loops...

2002-11-29 Thread Stephen Moretti
> i++??? really ? > ermmm... CFMX I believe or it might have been bluedragon.. CF 5 is still a pain with i=i+1 or you might be able to do incrementvalue(i), but I hate incrementvalue() and decrementvalue(). -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

RE: [ cf-dev ] for loops...

2002-11-29 Thread Justin MacCarthy
Try cgi.SCRIPT_NAME Justin > if ($PHP_SELF == '/index.php') { > do something > }else if ($PHP_SELF == '/resources.php') { > do something else > } > > so one can have a complex navbar and just include it on every > page, then do > different stuff depending on where you are (see > www.realfoodonli

Re: [ cf-dev ] for loops...

2002-11-29 Thread duncan . cumming
t? Ian W - Original Message - From: "Stephen Moretti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 29, 2002 12:35 PM Subject: Re: [ cf-dev ] for loops... > Ian, > > > for ($i=1;$i<#records#;$i++) { > do some action > } > &

Re: [ cf-dev ] for loops...

2002-11-29 Thread Ian Westbrook
lt;[EMAIL PROTECTED]> Sent: Friday, November 29, 2002 12:35 PM Subject: Re: [ cf-dev ] for loops... > Ian, > > > for ($i=1;$i<#records#;$i++) { > do some action > } > > becomes > > > records = ListLen(form.story_id); > for (i=1;i do some action >

RE: [ cf-dev ] for loops...

2002-11-29 Thread Justin MacCarthy
i++??? really ? Justin > > records = ListLen(form.story_id); > for (i=1;i do some action > } > > > in CF... -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human h

Re: [ cf-dev ] for loops...

2002-11-29 Thread Tom Smith
--- From: "Ian Westbrook" <[EMAIL PROTECTED]> To: "cfug dev list" <[EMAIL PROTECTED]> Sent: Friday, November 29, 2002 12:27 PM Subject: [ cf-dev ] for loops... Hi. Been doing a lot of PHP lately, so very rusty with CF (still using 4.5) - and I was never very good at

RE: [ cf-dev ] for loops...

2002-11-29 Thread Russ 'Snake' Michaels
Anyone else like to answer this question ? come on now, I think we need a few more. -Original Message- From: Stephen Moretti [mailto:[EMAIL PROTECTED]] Sent: 29 November 2002 12:36 To: [EMAIL PROTECTED] Subject: Re: [ cf-dev ] for loops... Ian, for ($i=1;$i<#records#;$i++) { do s

Re: [ cf-dev ] for loops...

2002-11-29 Thread Stephen Moretti
Ian, for ($i=1;$i<#records#;$i++) { do some action } becomes records = ListLen(form.story_id); for (i=1;i in CF... Much neater and tidier ;o) Regards Stephen -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [ cf-dev ] for loops...

2002-11-29 Thread Ian Westbrook
ta. that did it nicely ;-) Ian W - Original Message - From: "Russ 'Snake' Michaels" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 29, 2002 12:27 PM Subject: RE: [ cf-dev ] for loops... > > do stuff > > > -Orig

RE: [ cf-dev ] for loops...

2002-11-29 Thread Justin MacCarthy
sorry index=i even > -Original Message- > From: Justin MacCarthy [mailto:[EMAIL PROTECTED]] > Sent: 29 November 2002 12:35 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] for loops... > > > Hey Ian > > > > Justin > > > -

RE: [ cf-dev ] for loops...

2002-11-29 Thread Russ 'Snake' Michaels
do stuff -Original Message- From: Ian Westbrook [mailto:[EMAIL PROTECTED]] Sent: 29 November 2002 12:28 To: cfug dev list Subject: [ cf-dev ] for loops... Hi. Been doing a lot of PHP lately, so very rusty with CF (still using 4.5) - and I was never very good at it to begin with ;-) I

RE: [ cf-dev ] for loops...

2002-11-29 Thread Justin MacCarthy
Hey Ian Justin > -Original Message- > From: Ian Westbrook [mailto:[EMAIL PROTECTED]] > Sent: 29 November 2002 12:28 > To: cfug dev list > Subject: [ cf-dev ] for loops... > > > Hi. > Been doing a lot of PHP lately, so very rusty with CF (still > usi

[ cf-dev ] for loops...

2002-11-29 Thread Ian Westbrook
Hi. Been doing a lot of PHP lately, so very rusty with CF (still using 4.5) - and I was never very good at it to begin with ;-) I want to do a for loop for a number of records. I'm using this: which sets #records# to, say, 2 then I want something like for ($i=1;$i<#records#;$i++) { do some a