You appear to be referring to an array in the form scope. Perhaps this is
what you want:

line_total[i] = form["d_price#i#"] * form["qty#i#"];


Regards,
Matthew Walker
Electric Sheep Web
http://www.electricsheep.co.nz/

----- Original Message -----
From: "Eric Hoffman" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 7:41 AM
Subject: Obvious cfscript ?


> New to monkeying with cfscript...and must be missing the obvious today:
>
> This is not resolving...meaning form.d_price[i] resolves as form.d_price
> rather than form.d_price1 in the first loop.
> <cfscript>
> for (i=1; i LTE form.clientloop; i = i +1)
> line_total[i] = form.d_price[i] * form.qty[i];
> </cfscript>
>
> What am I forgetting?
>
> Regards,
>
> Eric J Hoffman
> DataStream Connexion
> www.datastreamconnexion.com
> Delivering Creative Data Solutions
>
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to