• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

CFLOOP startrow variable.. data not supported.. arg

Trying to do the following

<CFSET StartLOOP = 1000>

<CFLOOP query="get_in_range_postals" startrow="#startloop# + 1" endrow="#endloop#">

if you notice 'startrow' is the startloop variable defined above Plus 1

How can I write it so that the startrow value is the numeric value in #startloop# + 1 ??

I'm getting an error

Data not supported: value [1000 + 1] is not a number, so it is apparently just passing the string and not actually doing the addition

Do I just need to declare another variable, do the math there, and just use that variable in the loop?
 
Am I missing something? Why not just have:

Code:
<cfset startloop = 1001>

Because there is another function that uses the startloop as is, then below it, i need to do a similar function that is startloop+1

but i figured it out.. I need to include the + 1 within the # #

#startloop +1#
 
Back
Top