If you mean how do you get the next element in the list plus one, you can
loop through the list or just hard code it.
Hard Coded...
#ListGetAt(FORM.monthID, 1 + 1) #
if that doesn't work try with brackets
Loop...
<cfoutput>
<cfloop list="#FORM.monthID#" index="i">
#ListGetAt(FORM.monthID, i)#<br>
</cfloop>
</cfoutput>
Is that what you wanted?
Ade
-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 15:56
To: CF-Talk
Subject: RE: ListGetAt + 1
<cfset newNumber = ListGetAt(FORM.monthID, 1) + 1>
Ade
-----Original Message-----
From: Hawkes, Keith A CIV [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 16:51
To: CF-Talk
Subject: ListGetAt + 1
There seems to be little literature I can find on the ListGetAt command, so
my question is: what is the proper syntax to add '1' my
#ListGetAt(form.MonthID,1)#? In other words, this returns a number, and I
want it to return a number plus 1.
TIA,
Keith
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm