ooh, that looks good - I'll try that next time.
ta. I'd forgotten what a helpful bunch you CF lot are. They're much
pricklier on the PHP list ;-)
while we're on the subject, one of the most massively useful things I've
found in PHP (apart from the built-in locking and the lack of a need to
scope variables) is $PHP_SELF, which tells you what page you're on and lets
you do things like
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.realfoodonline.com for
an example, although it's still under massive construction). Is there a CF
equivalent?
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,
>
> <cfset records = #ListLen(form.story_id)#>
> for ($i=1;$i<#records#;$i++) {
> do some action
> }
>
> becomes
>
> <cfscript>
> records = ListLen(form.story_id);
> for (i=1;i<records;i++) {
> do some action
> }
> </cfscript>
>
> 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 additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
--
** 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 help, e-mail: [EMAIL PROTECTED]