> anyone know how to name structures dyanmically with the currentrow
> from a cfquery?
>
> broken code under
>
> <cfif get_email.recordcount GT 0>
> <cfloop query="get_email">
> <cfscript>
> currRow = #get_email.recordcount#
> //MyStructure_currRow = StructNew();
> SetVariable(MyStructure_currRow, StructNew());
> StructInsert(MyStructure_currRow, "name",
> "#get_email.FirstName# & #get_email.LastName#");
> StructInsert(MyStructure_currRow, "email",
> "#get_email.Email#");
> </cfscript>
> </cfloop>
> </cfif>
Have you tried
Evaluate("StructInsert(#myStructure_currRow#,"name","#get_email.FirstName# &
#get_email.LastName#")");
The Evaluate should let you put whatever you want in before it's calculated.
HTH
Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133
"Websites for the real world"
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.