Answered
Create LIST from CFLOOP
Hi all: I'm trying to create a list of 'ages' using CFLOOP
with user input from 2 form fields - FirstAge & LastAge,
filling in the ranges in between. Here is the relevant code:
<cfloop index="i" from="#FirstAge#" to="#LastAge#" step="1"> <!--- user inputs FirstAge & LastAge --->
<cfset age = #i#>
</cfloop>
<cfset ageList = ValueList(age)><!--- This should be a comma separated list from FirstAge to LastAge --->
Any thoughts on how to accomplish this?
<cfloop index="i" from="#FirstAge#" to="#LastAge#" step="1"> <!--- user inputs FirstAge & LastAge --->
<cfset age = #i#>
</cfloop>
<cfset ageList = ValueList(age)><!--- This should be a comma separated list from FirstAge to LastAge --->
Any thoughts on how to accomplish this?