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
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 (
> 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
__
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
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
cc:
11/29/02 02:01 PM Subject: RE: [ cf-dev ] for
loops...
Please respond
> 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
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
uk>cc:
Subject: RE: [ cf-dev ] for
loops...
11/29/02 01:59 PM
> 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
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 ]
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
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
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.
> 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
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=
> 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/
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
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
> }
>
&
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
>
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
---
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
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
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
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
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
>
> > -
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
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
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
29 matches
Mail list logo