If I'm guessing correctly you want to do this in an output.

if you're using CFMX you can use

#ListGetAt(form.MonthID,1)+1#

otherwise its either deal with it before the output by using 

<cfset intMonth = ListGetAt(form.MonthID,1) + 1>

or you can output in the output by using 

#evaluate(ListGetAt(form.MonthID,1)+1)#

one of those times that its ok to use evaluate.

> -----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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to