{
newstart = 1;
newend = 18;
}
else
{
newstart = (i * 18) + 1;
newend = ((i + 1) * 18) - 1;
}
currentpage = i + 1;
-----Original Message-----
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 10:15 PM
To: CF-Talk
Subject: RE: Cfloop ?
Try
If ( i eq 1 )
-----Original Message-----
From: Eric Hoffman [mailto:[EMAIL PROTECTED]
Sent: Thursday, 9 October 2003 1:53 p.m.
To: CF-Talk
Subject: RE: Cfloop ?
Whoops, i.currentrow was me trying other things...
When I do
if i = 1
I get an error thrown saying it doesn't know i.
?? I figured I had it right, that's why all the monkeying with different
options which seemed wholly unnecessary.
Regards,
Eric
_____
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 8:22 PM
To: CF-Talk
You don't need i.currentrow - i is the numeric index. Also you don't need
those # signs.
-----Original Message-----
From: Eric Hoffman [mailto:[EMAIL PROTECTED]
Sent: Thursday, 9 October 2003 12:47 p.m.
To: CF-Talk
Subject: Cfloop ?
How do I call the index from a cfloop in a cfscript? What did I miss?
<cfloop index="i" from="1" to="#totalpages#">
<cfscript>
if i.currentrow = 1
{newstart = 1;
newend = 18;}
else
{newstart = (i * 18) + 1;
newend = (#i# + 1)* 18) - 1;}
currentpage = #i# + 1;
</cfscript>
Thanks!!
Regards,
Eric J. Hoffman
Technology Tamer
DataStream Connexion
www.datastreamconnexion.com
_____
_____
_____
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

