Since it's an index loop, i is just a number - the position in the list:
1,2,3,4,5,...
#ListGetAt(MyList, i)#
#ListGetAt(MyList, i+1)#
Regards,
Matthew Walker
/*
Easier, smarter forms:
http://www.matthewwalker.net.nz/inform2
*/
> -----Original Message-----
> From: Chakka, Sudheer [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 21 May 2002 12:07 p.m.
> To: CF-Talk
> Subject: RE: Hi - Lists- Viewing 2 values at a time !!!
>
>
> Hi Matthew,
>
> Thanks for ur reply!!!
>
> What is the output should be ? Should it be like #i# and
> #i+1# in the loop
>
> I tried the above and it is giving an error.
>
> thanks,
> Sudheer chakka
>
> -----Original Message-----
> From: Matthew Walker [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 20, 2002 7:08 PM
> To: CF-Talk
> Subject: RE: Hi - Lists- Viewing 2 values at a time !!!
>
>
> Instead of a list loop, try an index loop:
> <cfloop index="i" from="1" to="#ListLen(MyList)#" step="2">
>
> Regards,
> Matthew Walker
> /*
> Easier, smarter forms:
> http://www.matthewwalker.net.nz/inform2
> */
>
>
>
>
>
> > -----Original Message-----
> > From: Chakka, Sudheer [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, 21 May 2002 11:58 a.m.
> > To: CF-Talk
> > Subject: Hi - Lists- Viewing 2 values at a time !!!
> >
> >
> > Hi,
> > I have values appended into a list. i am appending 2
> > values at a time.
> >
> > I want to view those 2 values at the same time. Is there a
> > way like step=2
> > in CFLOOP or something like that??
> >
> >
> > Thanks in advance,
> > Sudheer Chakka.
> >
> >
>
>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists