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]

Reply via email to