I am trying to build variables for query output.  I am receiving the
error, "cannot assign a variable to a function".  I am trying to make
p_answer1, p_answer2, p_answer3, for as many answers as I have.  How
might I restructure this code to accomplish it.

<cfif get_A.recordcount NEQ 0>
       <cfoutput query="get_A">
             <cfset evaluate("p_answer#get_A.currentRow#") = p_answer>
       </cfoutput>
</cfif>

thanks.

--
Daniel Kessler

Department of Public and Community Health
University of Maryland
Suite 2387 Valley Drive
College Park, MD  20742-2611
301-405-2545 Phone
www.phi.umd.edu
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to