Hi all,

I have a small dilemma on my hands. i was wondering if there is any way to 
append a variable to another variable? basically this is what i am trying to 
do:

<cfset varMyIndex = 0>
<cfloop condition="varMyIndex LESS THAN OR EQUAL TO 500">
        <cfset varMyIndex = "#varMyIndex#" + 1>
<cfif '#FORM.fldName("#varMyIndex#")#' IS NOT ''>
        <cfquery name="qryInsertRecs" datasource="myDatasource">
                INSERT INTO TABLE(fldName)
                VALUES ('#FORM.fldName("#varMyIndex#")#')
        </cfquery>
</cfif>
</cfloop>

so my output would be something like fldName1, fldName2 etc... up to 500

however the page keeps giving me errors. what is the correct way to 
accomplish this?

thanks in advance and have a great weekend.

cheers,

nelson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to